getElementById() 和 document.querySelector('id') 选择到的元素是相同的。 document.querySelectorAll() 函数返回所有元素,它找到匹配你提供的任何选择器:.
確定! 回上一頁