我有與ESLintESLint喜歡箭頭回調錯誤
這裏的一個問題是我的函數:
$productItem.filter(function (i, el) {
return el.getBoundingClientRect().top < evt.clientY
}).last()
.after($productItemFull)
,這裏是什麼ESLint告訴我:
warning Missing function expression name func-names
error Unexpected function expression prefer-arrow-callback
如何解決這個錯誤?