摘要: 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)