赞
踩
使用以下代码运行成功。
- chrome.storage.local.set({ pageState: "main" }).then(() => {
- console.log("Value is set");
- });
-
- chrome.storage.local.get(["pageState"]).then((result) => {
- console.log("Value is " ,result.pageState);
- });
好像在 localstorage 那里看不到。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。