📌  相关文章
📜  检查项目是否存在于 localstorage javascript 代码示例中

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

代码示例1
//If the given key does not exist in the list associated with the object then this method must return null.

if (localStorage.getItem("infiniteScrollEnabled") === null) {
  //...
}