Use of getPreventDefault() is deprecated. Use defa

2019-03-22 15:16发布

Previously I was using jQuery 1.7.1 in my code. I was getting the above error. Then I used the jQuery 1.11.1 straight from the google repository

<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js">
</script>

but still I'm getting this error. How should I resolve this?

Due to this error my other jQuery functionality is also not working.

I researched a lot about the solution but every time I got the same solution of upgrading the jQuery version. But this is also not working for me.

7条回答
叼着烟拽天下
2楼-- · 2019-03-22 16:08

I had the same issue and using Firefox's dev tools I realized I incorrectly commented something out in a hurry, forgetting to comment out the </script> also. Sometimes it the stupid little things.

查看更多
登录 后发表回答