安装好SublimeCodeIntel插件后,由于javaScript默认的是jQuery,需要修改一下配置,点击Perferences->packages settings->SublimeCodeIntel->settings Default找到
"JavaScript": {
"codeintel_scan_extra_dir": [], "codeintel_scan_exclude_dir":["/build/", "/min/"], "codeintel_scan_files_in_project": false, "codeintel_max_recursive_dir_depth": 2, "codeintel_selected_catalogs": ["jQuery"] },将jQuery修改为JavaScript即可。