会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变自己
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2017年6月6日
angularJS1笔记-(17)-ng-bind-html指令
摘要: angular不推荐大家在绑定数据的时候绑定html,但是如果你非要这么干也并不是不可以的。举个例子: 写这样的一段代码在浏览器运行: 会看到错误信息: 看意思是在一个安全的环境中使用了不安全的值导致的,这个时候我们需要引入angular的一个依赖包 angular-sanitize: 引入完成后我
阅读全文
posted @ 2017-06-06 20:01 My Way!
阅读(450)
评论(0)
推荐(0)
2017年6月1日
gulp工作流
摘要: gulp中文API地址:http://www.gulpjs.com.cn/docs/api/ 一些gulp插件的介绍:https://juejin.im/entry/55c8dbb160b22a3ebdf34d57 1.新建一个空项目文件夹,cd到该目录下初始化npm配置文件 此时在目录下多出一个p
阅读全文
posted @ 2017-06-01 01:00 My Way!
阅读(200)
评论(0)
推荐(0)
2017年5月29日
angularJS1笔记-(16)-模块里的constant、value、run
摘要: index.html: index.js: 运行结果:
阅读全文
posted @ 2017-05-29 00:13 My Way!
阅读(762)
评论(0)
推荐(0)
2017年5月22日
angularJS1笔记-(15)-自定义指令(accordion伸缩菜单原始实现)
摘要: index.html: kittencupCollapse.html index.js: 运行结果:
阅读全文
posted @ 2017-05-22 01:29 My Way!
阅读(182)
评论(0)
推荐(0)
angularJS1笔记-(14)-自定义指令(scope)
摘要: index.html: index.js: 运行结果:
阅读全文
posted @ 2017-05-22 01:13 My Way!
阅读(138)
评论(0)
推荐(0)
angularJS1笔记-(13)-自定义指令(controller和controllerAs实现通信)
摘要: index.html: index.js: 运行结果:
阅读全文
posted @ 2017-05-22 01:02 My Way!
阅读(152)
评论(0)
推荐(0)
angularJS1笔记-(12)-自定义指令(compile/link)
摘要: index.html: index.js: 运行结果:
阅读全文
posted @ 2017-05-22 00:27 My Way!
阅读(296)
评论(0)
推荐(0)
2017年5月16日
angularJS1笔记-(11)-自定义指令(transclude/priority/terminal)
摘要: 自定义指令的属性 transclude:为true时,允许把html中新定义的指令中原来的dom运用到该指令的template中。 属性priority,设置该指令的优先级,优先级大的先执行,默认指令的优先级是0(但ng-repeat指令的优先级默认是1000)。 属性terminal:为true时
阅读全文
posted @ 2017-05-16 13:54 My Way!
阅读(308)
评论(0)
推荐(0)
angularJS1笔记-(10)-自定义指令(templateUrl属性)
摘要: index.html: other.html: index.js: 运行结果:
阅读全文
posted @ 2017-05-16 13:32 My Way!
阅读(2419)
评论(0)
推荐(0)
angularJS1笔记-(9)-自定义指令(restrict/template/replace)
摘要: index.html: index.js: 运行结果:
阅读全文
posted @ 2017-05-16 13:18 My Way!
阅读(254)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告