📅  最后修改于: 2022-03-11 14:59:18.277000             🧑  作者: Mango
if (typeof(Storage) !== "undefined")
{
console.log("localStorage is available.");
}
else
{
console.log("localStorage is not supported by current browser.");
}