0
我想做一個簡單的函數,將用戶重定向到主頁,如名稱所示。我無法擺脫這個錯誤:我如何設置一個eslint規則爲no-undefined?
*ReferenceError: location is not defined
有人可以幫助我,使用eslint?
export function goToHomePage() {
location = '/';
}
我使用Backbone.js的MVC
嘗試'window.location'繞過它 – alex
導致:的ReferenceError:窗口沒有定義的。 :( –
你有''env「:{」browser「:true}'? –