document.getElementById("nim")为:获得名称为nim的层。
insertAdjacentHTML("beforeEnd", html)为:
nim层在其后追加插入内容为< INPUT type="file" size="50" NAME="File"> 的html格式信息。

向下面的例子,可以拷贝到网页中试试:
<script>
   function addFile()
   {
       var str = '<INPUT type="file" size="50" NAME="File">'
      var nim = document.getElementById("nim")

  nim.insertAdjacentHTML("beforeEnd", html)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-02-09
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-03
  • 2021-11-23
  • 2022-12-23
  • 2021-06-28
  • 2021-12-05
相关资源
相似解决方案