使用js動態建立div

function creatdiv(){                 //建立一個div var div = document.createElement('div'); div.innerHTML = '<img src=' + '"' + '/vtpath/' + data.allPath[i] + '"' + '>'; //設置顯示的數據,能夠是標籤. div.classNa
相關文章
相關標籤/搜索