也许节点的页面传递 可能会存在着一定的非法行或者不可操作行
你可以通过如下的方式 来转变 传递字符串父页面如下function prview(){
var passDiv=document.getElementById('div0').innerHTML;
window.showModalDialog("b.html",{a:passDiv});//这样弹出子页面
}子页面获取类似如下
function dy(){
var div=document.createElement('div');
div.innerHTML= window.dialogArguments.a;
document.body.appendChild(div);
}
你可以通过如下的方式 来转变 传递字符串父页面如下function prview(){
var passDiv=document.getElementById('div0').innerHTML;
window.showModalDialog("b.html",{a:passDiv});//这样弹出子页面
}子页面获取类似如下
function dy(){
var div=document.createElement('div');
div.innerHTML= window.dialogArguments.a;
document.body.appendChild(div);
}
var div = document.createElement('div'); var cloneTable = window.dialogArguments.document.getElementById("div0").innerHTML
div.innerHTML=cloneTable
var body = document.getElementById("body");
body.appendChild(div);
}
这样试试,ie直接append节点会出问题