摘要: 引入json2.js 阅读全文
posted @ 2017-07-26 11:29 yourDestiny2049 阅读(250) 评论(0) 推荐(0)
摘要: <script> //单例模式是一种项目开发中经常使用的模式,因为项目中我们可以使用单例模式进行“模块化开发” //公共方法 var utils=function(){ select:function(){ } }; //页卡模块中的change->实现页卡的切换 var tabRender=fun 阅读全文
posted @ 2017-07-04 10:25 yourDestiny2049 阅读(201) 评论(0) 推荐(0)
摘要: 1.除了内置指令外,AngularJs还可以自定义指令。 2.使用 .directive 函数来添加自定义的指令,该函数有两个参数。 3.使用驼峰法命名一个指令,但在使用时需要用-分割(与JavaScript DOM操作中css 复合属性background-color写作backgroundCol 阅读全文
posted @ 2017-06-29 16:52 yourDestiny2049 阅读(241) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-06-29 15:46 yourDestiny2049 阅读(232) 评论(0) 推荐(0)
摘要: <input type="text" list="car"><datalist id="car"> <option>奥迪</option> <option>奥拓</option> <option>宝马</option> <option>宝骏</option> <option>宝来</option> 阅读全文
posted @ 2017-06-29 10:00 yourDestiny2049 阅读(827) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-06-29 08:07 yourDestiny2049 阅读(165) 评论(0) 推荐(0)
摘要: method1:这种方法需要知道盒子的具体宽高,只有这样才能计算出对应的margin值(这种方法兼容所有浏览器) method2:这种方法不兼容低版本ie 阅读全文
posted @ 2017-06-27 07:15 yourDestiny2049 阅读(216) 评论(0) 推荐(0)