解决方法
function addText(elId,text) { document.getElementById(elId).value += text; }
要么:
function addText(elId,text) { var obj = document.getElementById(elId); var txt = document.createTextNode(text); obj.appendChild(txt); }
function addText(elId,text) { document.getElementById(elId).value += text; }
要么:
function addText(elId,text) { var obj = document.getElementById(elId); var txt = document.createTextNode(text); obj.appendChild(txt); }