Document:close() 方法
Deprecated
Avoid using this feature in new projects.
The dynamic markup insertion API, which includes document.write(), has "very idiosyncratic behavior" which can be difficult to debug.
This feature may be a candidate for removal from web standards or browsers.>
Consider using the following features instead: DOM.>
Document.close() 方法用于完成对使用 Document.open() 打开的文档的写入。