xcxd.net
当前位置:首页 >> 如何从AngulArJS变量设置一个iFrAmE srC属性 >>

如何从AngulArJS变量设置一个iFrAmE srC属性

使用js改变iframe的src地址; 参考例子如下: 无标题页 function refresh2(){ parent.rightFrame.location.href="testwindow.jsp"; } function dorefresh(){ timeoutid = setInterval("refresh2()",1000); }

查一下$sce

使用js改变iframe的src地址; 参考例子如下: 无标题页 function refresh2(){ parent.rightFrame.location.href="testwindow.jsp"; } function dorefresh(){ timeoutid = setInterval("refresh2()",1000); }

解决方案: app.config(function($sceDelegateProvider) { $sceDelegateProvider.resourceUrlWhitelist([ // Allow same origin resource loads. 'self', // Allow loading from our assets domain. Notice the difference between * and **. 'h...

解决方案: app.config(function($sceDelegateProvider) { $sceDelegateProvider.resourceUrlWhitelist([ // Allow same origin resource loads. 'self', // Allow loading from our assets domain. Notice the difference between * and **. 'h...

网站首页 | 网站地图
All rights reserved Powered by www.xcxd.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com