Tag: phpstorm

jQuery调试

如何防止调试器(在这种情况下为Firebug或PhpStorm)从jQuery及其插件源代码中跳出来,然后单步执行我们自己的代码?

Jshint / PhpStorm:使用jquery .data()时的“未解析的变量”

Phpstorm一直告诉我,我有一个未定义的变量input.connectto Html: … JS: $(document).on(‘click’, ‘.b-showColorinList’, function() { cm.showColorInList( $(this) ); }); 和: /** * Uses ajax to get other color in list view * @param {object} inputObj */ cm.showColorInList = function(inputObj) { “use strict”; var input = inputObj.data(), parent = $(“#”+input.connectto), othervalue = input.othervalue; 我知道我可以忽略jshint中的一行,但有没有办法让它与jsdoc一致,例如将input定义为一个对象