上一页 1 ··· 103 104 105 106 107 108 109 110 111 ··· 167 下一页
摘要: 无标题文档 // 容易与样式class搞混 //容易与注释搞混 无标题文档 11111111 22222222 33333333 --> temp2.html: {{name}} 22222222 333... 阅读全文
posted @ 2016-08-05 16:12 无天666 阅读(1712) 评论(0) 推荐(0)
摘要: 无标题文档 //ng-model是将视图绑定Model(变量) //通过名字来查找输入框 {{ myForm.myText.$valid }} //校验成功是true, {{ myForm.myText.$invalid }} //校验成功是fal... 阅读全文
posted @ 2016-08-05 14:28 无天666 阅读(319) 评论(0) 推荐(0)
摘要: 无标题文档 //是否选中,不选中会改变bBtn的值会改变下面的隐藏显示。 aaaaaaaaaaaa //隐藏显示,占布局。 aaaaaaaaaaaa //隐藏显示,不占布局。 //切换 默认的效果 切换的效果 ... 阅读全文
posted @ 2016-08-05 13:37 无天666 阅读(248) 评论(0) 推荐(0)
摘要: 无标题文档 //checkbox选中则aaa为true //输入框变化就会出发输入框的值为hello {{bbb}} //ng-paste="ccc=true"当输入框复制操作时时ccc=true, {{ccc}} 无标题文档 //ng-disabled="isDisabled",is... 阅读全文
posted @ 2016-08-05 10:52 无天666 阅读(1427) 评论(0) 推荐(0)
摘要: 无标题文档 {{data}} 无标题文档 姓名 年龄 {{ data.name }} {{ data.age }} ... 阅读全文
posted @ 2016-08-05 09:25 无天666 阅读(1988) 评论(0) 推荐(0)
摘要: 无标题文档 {{name | currency:"¥"}} //currency是把数字变成金额的写法, ¥是数字前面加¥ {{ name | number : 2 }}//number是把数字每3位一个逗号,2表示保留2位小数 {{ name | uppercase }} {{ name | json }} //json格式的name转换... 阅读全文
posted @ 2016-08-04 21:38 无天666 阅读(206) 评论(0) 推荐(0)
摘要: 无标题文档 无标题文档 aaaaaaaa 无标题文档 {{name}} {{name}} 无标题文档 --> {{name}} 无标题文档 {{name}} 阅读全文
posted @ 2016-08-04 20:38 无天666 阅读(237) 评论(0) 推荐(0)
摘要: 无标题文档 {{name}} {{name}} 阅读全文
posted @ 2016-08-03 22:20 无天666 阅读(438) 评论(0) 推荐(0)
摘要: //ng-app是初始化指令,整个页面都会被angularjs解析,写在div或者其他标签上表示只是局部的div和标签里面使用angularjs解析,其余的不用anguarjs解析。 无标题文档 //ng-controller是控制器 click函数改变name的值 作用同上 {{name}} 无标题文档 ... 阅读全文
posted @ 2016-08-03 21:48 无天666 阅读(618) 评论(0) 推荐(0)
摘要: 无标题文档 //Control,ng-controller是作用域,范围是div范围。 {{name}} //View {{name}} {{age}} 无标题文档 //写了这个就会执行Aaa函数, 阅读全文
posted @ 2016-08-03 21:26 无天666 阅读(1195) 评论(0) 推荐(0)
上一页 1 ··· 103 104 105 106 107 108 109 110 111 ··· 167 下一页