jquery 中的 $(「#」) 與 js中的document.getElementById(「」) 的區別

之前沒注意過,認爲jquery 中的 $("#") 與 document.getElementById("") 是一回事,指的是同一個東西。 此次項目開發在使用驗證碼生成的時候,發現二者不一樣,使用時須要注意! 經過如下測試: js中代碼 function reloadValidCode(o) {  html alert(o); java     o.src = "${pageContext.re
相關文章
相關標籤/搜索