創建指定文本的按鈕:. var btn=document.createElement("BUTTON"); var t=document.createTextNode("CLICK ME"); btn.appendChild(t);. 輸出結果:. CLICK ME.
確定! 回上一頁