posted @ 2018-03-16 15:53
段了的弦
阅读(126)
推荐(0)
编辑
摘要:
关键词: 一般用法: html中可以这样用: directive调用controller中的方法:
阅读全文
posted @ 2018-03-16 15:51
段了的弦
阅读(139)
推荐(0)
编辑
摘要:
angular.module('app', []) .value("a", "123") //可改 .constant("b", "456") //不可改 .factory("c", function () { return { ...
阅读全文
posted @ 2018-03-16 15:37
段了的弦
阅读(111)
推荐(0)
编辑
posted @ 2018-03-16 15:31
段了的弦
阅读(152)
推荐(0)
编辑
摘要:
当带有 ng-disabled="f.$invalid" 时(f为form的name),input内加入required,表示这项为必填项 !! JS中:
阅读全文
posted @ 2018-03-16 15:29
段了的弦
阅读(108)
推荐(0)
编辑
摘要:
常用指令: 1.例如输入框中输入内容,点击提交添加到列表中: 2.几种数据绑定的方式: 3.登录界面: 4.页面刷新时防止出现符号:
阅读全文
posted @ 2018-03-16 15:22
段了的弦
阅读(149)
推荐(0)
编辑