📌  相关文章
📜  检查浏览器是否支持本地存储 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:18.277000             🧑  作者: Mango

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