本文介绍了未捕获的TypeError:$(...)。on不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友, 在我的网站上有搜索按钮,如果我点击搜索图标没有结果即将到来,但在Chrome中我可以通过检查元素找到错误就像未捕获的TypeError:$(...)。on不是函数 在1中显示错误st line
$(' 。 searchInputContainer a.dnnSearchBoxClearText')。on(' click',function(){ var $ this = $(this); var $ wrap = $ this .parent(); $(' 。searchInputContainer input')。val(' ')。focus(); $ this.removeClass(' dnnShow'); $(' 。searchSkinObjectPreview',$ wrap).remove(); return false; });请帮我找到解决方案,这对我更有帮助。 谢谢&最好的问候 g.renga
解决方案(...)。on不是函数 在第一行显示错误
(' 。searchInputContainer a.dnnSearchBoxClearText')。on(' 点击',function(){ var
this =
Hi friends, In my website have with search button, if i click search icon no result is coming, but in chrome i can find via inspect element the error is like "Uncaught TypeError: $(...).on is not a function" showing error in 1 st line
$('.searchInputContainer a.dnnSearchBoxClearText').on('click', function () { var $this = $(this); var $wrap = $this.parent(); $('.searchInputContainer input').val('').focus(); $this.removeClass('dnnShow'); $('.searchSkinObjectPreview', $wrap).remove(); return false; });please help me to find solution for this, its more helpful for me. Thanks & Best Regards g.renga
解决方案 (...).on is not a function" showing error in 1 st line ('.searchInputContainer a.dnnSearchBoxClearText').on('click', function () { var this =更多推荐
未捕获的TypeError:$(...)。on不是函数
发布评论