0
var o = JSON.parse(localStorage['options']);
localStorage的[ '選項']這個特定的行是一個對象:
{"ads":true,"chat":true,"footer":true,"invite":true,"web":true,"contact":true,"window":true,"icon":t rue,"row":true,"message":true}
如果我在option.html使用此代碼,沒有錯將會發生。但在background.html中,我收到錯誤「意外的非法令牌」。
我該怎麼辦?