我粘贴你的代码之后,出现
document.getElementById(...)'为空或不是对象
请问这句是什么意思?错误出在哪里?
谢谢了!

解决方案 »

  1.   

    document.getElementById(...)'为空或不是对象
    就是你后面的名字没有找到吧,比如document.getElementById("TextBox1"),页面没有叫TextBox1的东东.
      

  2.   

    var str = '<INPUT type="file" NAME="File">'
    document.getElementById('FileCollection').insertAdjacentHTML("beforeEnd",str)
    原句是这样的。
    我也不知道FileCollection是什么东西。
      

  3.   

    这个语句的意思好像是 加一个<INPUT type="file" NAME="File">
    那应该是没有'FileCollection'这个id,把要加上上传附件的地方加上就好了。
    比如<td id="FileCollection">