【文件属性】:
文件名称:document.head:CommonJS 的 document.head polyfill
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-12 11:24:02
JavaScript
CommonJS 的 document.head 垫片
这需要并将其放入 CommonJS。
使用 npm 安装它:
npm install document.head
然后将它与 Browserify 或 Webpack 一起使用:
var head = require ( 'document.head' ) ;
head . appendChild ( /* ... */ ) ;
您也可以使用它来添加document.head支持,但请注意,某些浏览器(如 Safari)在严格模式下尝试重新分配document.head时会引发错误。
document . head = require ( 'document.head' ) ;
享受!
【文件预览】:
document.head-master
----.gitignore(20B)
----README.md(604B)
----test()
--------undefined.js(203B)
--------browsertest.html(342B)
--------defined.js(153B)
----LICENSE(1KB)
----package.json(605B)
----head.js(76B)