var openUrl = "B.html";
var targetWindowStyle = "dialogHeight: 550px; dialogWidth: 550px; center: Yes; help: No; resizable: yes; status: yes; scroll:yes";
showModalDialog(openUrl,arg,targetWindowStyle);
arg参数如果是字符串,最大长度是4096,不然会被阶段,但如果转换为对象就没问题了。
showModalDialog(openUrl,new String(arg),targetWindowStyle);
改后代码:
var openUrl = "B.html";
var targetWindowStyle = "dialogHeight: 550px; dialogWidth: 550px; center: Yes; help: No; resizable: yes; status: yes; scroll:yes";
showModalDialog(openUrl,new String(arg),targetWindowStyle);