2017年3月29日
摘要: html template 使用模板 总结: 1 定义模板 使用script type为 text/html或者text/template 需要使用id标示 火或者存放在textarea中,使用css dispaly none; 使用id标示 demo 模板也可以直接存储在一个变量中 2 分隔符为< 阅读全文
posted @ 2017-03-29 16:15 半夏微澜ぺ 阅读(3316) 评论(0) 推荐(0)
摘要: $(function)是$(document).ready(function(){});的简写方法 用来在DOM加载完之后执行一系列预先定义好的函数 (function(){});表示一个匿名函数。 function(arg){}定义一个参数为arg的匿名函数。然后使用(function(arg){ 阅读全文
posted @ 2017-03-29 11:02 半夏微澜ぺ 阅读(351) 评论(0) 推荐(0)