createElement ('div'); var newText = document.createTextNode('這是新建立div 中的文字。'); document.body.appendChild(newElement); //漏了這一句,否則行不通
確定! 回上一頁