Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
支付请求 API是仅作为PWA的一部分而构建的,还是也可以在常规网站中使用?
当网站使用 PWA API 时,它就变成了 PWA。PWA 没有严格的技术定义。可以公平地假设您的网站需要满足三个条件才能成为 PWA:您需要在 HTTPS 下运行,您需要一个 Web App Manifest,并且您需要一个 Service Worker。支付请求 API 需要 HTTPS,但这是这里唯一匹配的要求。
所以基本上:不,你不需要 PWA 来使用支付请求 API,但是当你使用它时,你的网站会变得更像 PWA。