草庐IT

callScriptText

全部标签

javascript - 如何打开一个新窗口并使用 jQuery 将 html 插入其中?

我正在尝试从javascript打开一个新窗口,但没有向html中插入任何内容:varcallScriptText=$('#callScriptText').html();varurl='/Action/CallScript/?callScript=';//OpenthecurrentcallscriptinanewwindowvaropenWindow=window.open(url,'callScriptPopup','width=500,height=500');$(openWindow).html(callScriptText);有人知道为什么吗?

javascript - 如何打开一个新窗口并使用 jQuery 将 html 插入其中?

我正在尝试从javascript打开一个新窗口,但没有向html中插入任何内容:varcallScriptText=$('#callScriptText').html();varurl='/Action/CallScript/?callScript=';//OpenthecurrentcallscriptinanewwindowvaropenWindow=window.open(url,'callScriptPopup','width=500,height=500');$(openWindow).html(callScriptText);有人知道为什么吗?