|
|
var node = document.getElementById('div_html');
o2.load([jsurl2,jsurl1], {"reload": true,"type": "text/javascript","baseUrl":' '}, function(){
// alert("js文件已经载入")
}.bind(this));
//alert(node);
o2.loadHtml(src, {"reload":false,"dom": node,"evalScripts": true,"baseUrl":' '}, function(){
//html文件已经载入
}.bind(this));
请问管理员,在一个门户的页面中加入了一个容器div_html,用o2.loadHtml引入html文件,html文件中有js引用,上面的代码可以显示html页面内容,但是html中引用的js不起作用,管理员给看看是那个地方有问题
|
|