我正在尝试从 javascript 打开一个新窗口,但没有在 html 中插入任何内容:
var callScriptText = $('#callScriptText').html();
var url = '/Action/CallScript/?callScript=';
// Open the current call script in a new window
var openWindow = window.open(url, 'callScriptPopup', 'width = 500, height = 500');
$(openWindow).html(callScriptText);
有谁知道为什么?