eslint報錯信息

報錯信息: Missing space before function parentheses 意思是在方法名和刮號之間需要有一格空格。 報錯信息:Expected error to be handled 這是因爲回調函數裏面的參數error沒有運用到,所以可以不設置參數,或者在回調函數內console.log(error) 3. Newline required at end of file b
相關文章
相關標籤/搜索