我是jquery的新手,我有这个小代码,我正在使用它,它工作得很好,只是注意到了chrome中的一个错误“未捕获引用错误:$ is not defined”。
我不确定这是什么意思,我怎么才能修复它,任何帮助都会非常感谢。
$(function(){
$('.check-required').change(function() {
$('#id_complete').prop('disabled', $('.check-required').length !== $('.check-required:checked').length);
}).change();});
$('input[type="checkbox"]').bind('click', function(e) {
$(this).next().toggleClass("active"); });
发布于 2013-09-06 08:25:26
jQuery库定义了$函数。如果你看到一个关于它未定义的错误,要么是你没有在你的超文本标记语言文档中加载jQuery,要么是由于某种原因导致加载失败。
https://stackoverflow.com/questions/18647994
复制相似问题