0
我想不通为什么这个一直给我一个匿名函数错误,将无法正常运行:遗漏的类型错误..不是一个函数
<script type="text/javascript">
$(document).on('click', '.mobile-menu', function(event) {
event.preventDefault();
});
</script>
错误:
Uncaught typeerror.. is not a function
它看起来不错,它应该工作。你有没有包含jQuery库? –
你能告诉我什么'console.log(window。$)'返回? –
尝试测试,如果jQuery被加载。 console.log(jQuery) –