如果使用IDEA 设置一下 globals
或
/*global window */ ... your script goes herehttps://stackoverflow.com/questions/1404078/jslints-issue-with-window-as-a-global-variable