gpt4 book ai didi

javascript - 如何在新窗口中打开文本区域?

转载 作者:太空宇宙 更新时间:2023-11-04 16:31:08 25 4
gpt4 key购买 nike

这就是我的,它不起作用。请帮忙。

var myWindow = window.open("","","width=600,height=450");
newContent = myWindow.document.createElement("textarea");
myWindow.document.appendChild(newContent);

最佳答案

EXAMPLE

function openWin(){
var myWindow = window.open("","","width=600,height=450");
myWindow.document.write("<textarea rows='30' cols='70'></textarea>");
}

关于javascript - 如何在新窗口中打开文本区域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21776890/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com