Script 对象表示 HTML <script> 元素。
您可以使用 getElementById() 访问 <script> 元素:
提示:您还可以使用以下命令访问 <script> 元素脚本收藏。
您可以使用 document.createElement() 方法创建 <script> 元素:
Property | Description |
---|---|
async | Sets or returns whether a script should be executed asynchronously as soon as it is available |
charset | Sets or returns the value of the charset attribute of a script |
crossOrigin | Sets or returns the the CORS settings of a script |
defer | Sets or returns whether a script should be executed when the page has finished parsing |
src | Sets or returns the value of the src attribute of a script |
text | Sets or returns the contents of all the text nodes that are children of a script |
type | Sets or returns the value of the type attribute of a script |
HTML 参考:HTML <脚本> 标签
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!