0

I am using vim with syntastic on a javascript (cordova) project, but I am getting a lot of warnings as can be seen below:

enter image description here

I consider to be a javascript noob, so I'm a little concerned that my code is not to a good standard.

How can I fix these warnings?

4

1 回答 1

1

对我来说,解决方案是将以下内容添加为标题:

/* global SettingsManager, $  */  

IE

/* global SettingsManager, $  */

(function() {
    "use strict";

    var settingsManager = SettingsManager.getInstance();

    $(document).on("pageinit", "#budgetSummaryList", function(e) {
    ...
于 2015-03-10T20:28:15.317 回答