angularJS-使用$sce控制代码安全检查
摘要:一、ng-bing-html指令问题 需求:我需要将一个变量$scope.x = '<a href="http://www.baidu.com/">百度一下</a>'绑定到angular的视图上,希望视图上显示的一个链接. 1.如果,我采用ng-bind="x",或者{{x}},我在视图看到的结果就
阅读全文
posted @ 2017-03-27 16:05
posted @ 2017-03-27 16:05
posted @ 2017-01-19 15:38
posted @ 2016-10-27 15:55