scope - Web app manifests 编辑
Type | String |
---|---|
Mandatory | No |
The scope
member is a string that defines the navigation scope of this web application's application context. It restricts what web pages can be viewed while the manifest is applied. If the user navigates outside the scope, it reverts to a normal web page inside a browser tab or window.
If the scope
is a relative URL, the base URL will be the URL of the manifest.
Examples
If the scope is relative, the manifest URL is used as a base URL:
"scope": "/app/"
The following scope limits navigation to the current site:
"scope": "https://example.com/"
Finally, the following example limits navigation to a subdirectory of the current site:
"scope": "https://example.com/subdirectory/"
Specifications
Specification | Status | Comment | Feedback |
---|---|---|---|
Web App Manifest | Working Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论