[英]jquery functions execute but log an error
當我執行以下功能時:
<span onclick="ldmr()">load more</span>
<script type="text/javascript">
function ldmr()
{
alert("hhhhhh");
}
</script>
我收到此錯誤:
Uncaught Error: Syntax error, unrecognized expression: #
at Function.ga.error (jquery-3.2.1.min.js:2)
at ga.tokenize (jquery-3.2.1.min.js:2)
at ga.select (jquery-3.2.1.min.js:2)
at Function.ga [as find] (jquery-3.2.1.min.js:2)
at r.fn.init.find (jquery-3.2.1.min.js:2)
at new r.fn.init (jquery-3.2.1.min.js:2)
at r (jquery-3.2.1.min.js:2)
at i (bootstrap.min.js:6)
at HTMLAnchorElement.<anonymous> (bootstrap.min.js:6)
at Function.each (jquery-3.2.1.min.js:2)
您能否解釋一下此錯誤的原因是什么? 謝謝。
我正在使用的bootstrap js lib被描述為我剛剛使用了新版本,並且錯誤消失了
謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.