我的應用程序幾乎在所有瀏覽器中運行,但是當我使用ie8預期標識符發生。ie8預期標識符錯誤 - 角
$scope.delete = function (index) {
$scope.recipelists.splice(index, 1);
localStorage.setItem('markedRecipes', JSON.stringify($scope.recipelists))
if ($scope.recipelists == 0) {
$modalInstance.dismiss('cancel');
}
}
這是ie8的控制檯直接顯示錯誤的地方。
我不知道這有什麼問題。
謝謝!
IE8是否支持本地存儲? – qamar 2015-01-21 05:54:40
這可能會回答http://stackoverflow.com/questions/3452816/does-ie8-out-of-the-box-have-support-for-localstorage – PipeMan 2015-01-21 05:58:20
@qamar:無論哪種方式,這會拋出一個引用錯誤,而不是一個*語法*錯誤。 – 2015-01-21 05:59:33