JS

 1.

使用 .appendChild 時,前方就算是 id 也需要加上 [0] 否則會報 .appendChild is not a function 問題

$("#aaa")[0].appendChild(bb);

ref: document.getElementById vs jQuery $()


Comments