摘要: 如果直接写路径到iframe标签里的ng-src中会出现报错;如果在src属性中用了{{path}}也会出错 ($scope.path = '路径'); 解决方法: 1、ng里面有个服务是专门用来解决跨域问题的 $sce。(需要注入这个服务) 用法: 阅读全文
posted @ 2017-03-30 11:45 芒果有毒 阅读(4380) 评论(0) 推荐(0) 编辑