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