亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

document對象 文檔輸入輸出問題

為什么頁面跳轉不過去?哪里錯了,求指教


<script language="javascript">

<!--

? ? ? function newopen(){

? ? ? var dw=window.open();

? ? ?dw.document.open();

? dw.document.write("<html><head><title>一個新的頁面</title>");

dw.document.write("<script language='javascript'>");

dw.document.write("function woc(){document.write('笑笑');}");

dw.document.write("</script></head>");

dw.document.write("<body>");

dw.document.write("<img src='image/mmexport1427618752278.jpg'><br/>");

dw.document.write("這里是寫入的新內容<br/>");

dw.document.write("<input type='text'/>");

dw.document.write("</body></html>");

dw.document.close();

}

-->

<body>


<input type="button" value="打開一個新文檔" onClick="newopen();" />


</body>


正在回答

1 回答

js代碼沒有閉合,這么多內容是要實現什么啊。好亂

0 回復 有任何疑惑可以回復我~
#1

一墨飛雪 提問者

用document文檔的輸入輸出構造出一個頁面,非常感謝
2016-04-24 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

document對象 文檔輸入輸出問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號