学习笔记 DevTools 5. Storage

195 阅读1分钟

5.1 Cookies

  • Open the cookies pane
    • Open Application panel -> Expand Cookies -> Select a domain
  • Fields
    • Name
    • Value
    • Domain
    • Expires/Max-Age
    • Http
      • If true, javascript modification is not allowed;
    • Secure: If true, the cookie can only be sent to the server over secure, HTTPS connection.
    • SameSite: 不知道是啥子玩意儿

5.2 Local Strorage/Session Storage

  • View Key and Values
    • Open Application panel -> Expand Local Storage menu -> Select a origin -> Click a row of the table -> View the value in the viewer blow the table
  • Create a new key-value pair
    • Double-Click the empty part of the table.
  • Edit Keys or Values
    • Double-click the cell in the Key or Value column to edit that key or value
  • Delete key-value pairs
    • Click the key-value pair that you want delete -> click the button
  • Delete all key-value pairs for a domain
    • View a domain's key-value pairs
    • click the button

5.3 IndexedDB

5.4 Web SQL

关于数据库这两个没用过,好像市面上也没有成熟的应用案例.所以就不动它了先

5.5 Application Cache

这个文档上说新版规范已经废弃了,所以也不用学了