Web APIs

  • Document Object Model(DOM)
    • Document
    • EventTarget
      • addEventListener()
      • removeEventListener() 不会用
      • dispatchEvent()
    • Element
      • Events
        • blur
        • focus
        • dblclick
        • mouseover
        • mouseout
  • AbortController
  • AbortSignal

WebSockets

Payment Request API

Now(2022-07-30) only works in Chrome, Safari(refer)

Payment Request API 提供了支付的优化流程。

The Payment Request API provides a consistent user experience for both merchants and users. It is not a new way for paying for things; rather, it's a way for users to select their preferred way of paying for things, and make that information available to a merchant.

Demo

Layout of comment panels