그래서 나는 JavaScript를 정리하고 테스트하는 여러 가지 방법을 모색하고 있습니다. 나는 다른 언어와 마찬가지로 좋은 방법을 얻는 한 가지 방법을 생각했다. 좋은 코드를 읽는 것이다. jQuery는 매우 대중적이므로 어느 정도의 훌륭한 코딩이 있어야합니다. jQuery가 유효성 검사에 실패하면 JSLint의 장점은 무엇입니까
그래서 JSLint의 검증을 통해 jQuery를 실행할 때 그것은 나에게이 메시지를주는 이유 :Error:
Problem at line 18 character 5: Expected an identifier and instead saw 'undefined' (a reserved word).
undefined,
Problem at line 24 character 27: Missing semicolon.
jQuery = window.jQuery = window.$ = function(selector, context) {
Problem at line 24 character 28: Expected an identifier and instead saw '='.
jQuery = window.jQuery = window.$ = function(selector, context) {
Problem at line 24 character 28: Stopping, unable to continue. (0% scanned).
이 JSLint 및 jquery-1.3.1.js를 사용하여 수행되었다
jQuery는 모범이 아닙니다. 자바 스크립트 – singpolyma
jQuery는 jsLint를 사용합니다. http://docs.jquery.com/JQuery_Core_Style_Guidelines –