- "contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.cn//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.cn/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.cn/api/common/DOCUMENT\", \"name\": \"DOCUMENT\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular-cn/edit/aio/packages/common/src/dom_tokens.ts?message=docs(common)%3A%20请简述你的修改...#L24-L23\" aria-label=\"提供编辑建议\" title=\"提供编辑建议\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular-cn/tree/12.1.0-next.1/packages/common/src/dom_tokens.ts#L24-L23\" aria-label=\"查看源码\" title=\"查看源码\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"document\">DOCUMENT<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/DOCUMENT#document\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label const\">const</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p translation-result=\"on\">表示主要渲染上下文的 DI 令牌。在浏览器中,这是 DOM 文档。</p><p translation-origin=\"off\">A DI Token representing the main rendering context. In a browser this is the DOM Document.</p>\n\n\n <p no-translate=\"\"><a href=\"api/common/DOCUMENT#description\">查看\"说明\"...</a></p>\n </section>\n \n\n \n\n \n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">\n const <a href=\"api/common/DOCUMENT\" class=\"code-anchor\">DOCUMENT</a>: <a href=\"api/core/InjectionToken\" class=\"code-anchor\">InjectionToken</a><Document>;\n </code-example>\n\n \n\n \n \n<section class=\"description\">\n <h2 id=\"description\">说明<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/DOCUMENT#description\"><i class=\"material-icons\">link</i></a></h2>\n <p translation-result=\"on\">注意:当应用程序上下文和渲染上下文不同时(例如,在 Web Worker 中运行应用程序时),document 可能在应用程序上下文中不可用。</p><p translation-origin=\"off\">Note: Document might not be available in the Application Context when Application and Rendering\nContexts are not the same (e.g. when running the application in a Web Worker).</p>\n\n\n \n</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common\n - api/platform-browser/BrowserTransferStateModule\n - api/platform-server/ServerTransferStateModule\n - guide/aot-metadata-errors\n - guide/universal\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/DOCUMENT#description\n - api/common/DOCUMENT#document\n - api/core/InjectionToken\n - https://github.com/angular/angular-cn/edit/aio/packages/common/src/dom_tokens.ts?message=docs(common)%3A%20请简述你的修改...#L24-L23\n - https://github.com/angular/angular-cn/tree/12.1.0-next.1/packages/common/src/dom_tokens.ts#L24-L23\n-->"
0 commit comments