?? 1.19 在網頁中動態添加script腳本.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標題頁</title>
<script>
o=document.createElement("script"); //動態創建script元素
o.text="alert('test!')"; //輸出語句。。是腳本中的代碼
document.documentElement.childNodes[0].appendChild(o);//將腳本添加到頁面中
</script>
</head>
<body>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -