📌  相关文章
📜  如何检查本地存储是否可用 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:54.452000             🧑  作者: Mango

代码示例1
if (typeof(Storage) !== "undefined") 
{ 
    console.log("localStorage is available."); 
} 
else 
{ 
    console.log("localStorage is not supported by current browser."); 
}