摘要:
controller 初始化脚本每次都执行两次,控制台输出两条初始化记录原因: html代码中加入了 ng-controller="你定义的controller"IE8 个别页面无法正常显示TypeError: Object doesn't support this property or meth... 阅读全文
摘要:
用途ng-if属性用来控制页面内元素的添加或移除。用法Click me: Show when checked:This is removed when the checkbox is unchecked.工作原理本以为ng-if和ng-show/ng-hide类似(4行代码),单纯的进行元素的添加删... 阅读全文