var ids = document.querySelectorAll('[id]'); Array.prototype.forEach.call( ids, function( el, i ) { // "el" 是你的元素 console.log( el.id ) ...
確定! 回上一頁