📜  文件 ajax - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:34.382000             🧑  作者: Mango

代码示例1
function showUploadedItem (source) {
  var list = document.getElementById("image-list"),
      li   = document.createElement("li"),
      img  = document.createElement("img");
    img.src = source;
    li.appendChild(img);
  list.appendChild(li);
}