6

Within my web project I use jQuery. There is a function registered to jQuery click event.

toggleCalculationSelection : function(ev) {
  var src = typeof ev !== 'undefined' ? $(ev.target) : $('form.attribute input[name="calculation"][value="3"]');

jQuery delivers an event object with a target property. JetBrains Webstorms tells me, that target is an unresolved variable.

I don't want to turn off this check completely.

How can I either tell Jetbrains to ignore this error in this case or teach it, that jQuery has this property?

4

1 回答 1

12
  1. ev.target 没有报告为我未解决。您是否为您的项目启用了 JQuery 库?
  2. Alt+Enter,选择任何建议(例如“创建字段“目标”),点击右(或按建议旁边的箭头图标),选择“禁止声明”
于 2013-10-03T11:58:42.927 回答