Javascript JSLint:意外结束
抱怨并说:Javascript JSLint:意外结束,javascript,jquery,jslint,Javascript,Jquery,Jslint,抱怨并说: $.fn.hasScrollBar = function () { "use strict"; return this.get(0).scrollHeight > this.height(); } 有什么问题吗?因为它是函数表达式(不是函数声明),所以应该以分号结尾: Unexpected '(end)'. } line 5 character 1 $.fn.hasScrollBar=函数(){ “严格使用”; 返回this.get(0.scrollHei
$.fn.hasScrollBar = function () {
"use strict";
return this.get(0).scrollHeight > this.height();
}
有什么问题吗?因为它是函数表达式(不是函数声明),所以应该以分号结尾:
Unexpected '(end)'.
}
line 5 character 1
$.fn.hasScrollBar=函数(){
“严格使用”;
返回this.get(0.scrollHeight>this.height();
}; // 因为它是一个函数表达式(不是函数声明),所以应该以分号结尾:
Unexpected '(end)'.
}
line 5 character 1
$.fn.hasScrollBar=函数(){
“严格使用”;
返回this.get(0.scrollHeight>this.height();
}; //