或是使用 querySelector 、 querySelectorAll ,這比較接近jQuery 的選擇方法,. 記得 id 前方要加上 # , class 要加上 . 。 // 選取單一元素document.
確定! 回上一頁