custom-element:用于创建自定义元素原型的便捷包装器

时间:2021-06-10 05:40:53
【文件属性】:
文件名称:custom-element:用于创建自定义元素原型的便捷包装器
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-10 05:40:53
JavaScript 自定义元素 实验性:用于创建自定义元素原型的便利包装器。 require ( 'webcomponents.js' ) var createCustom = require ( 'custom-element' ) var CustomHTMLElement = createCustom ( function ( ) { // created } ) . on ( 'created' , function ( ) { // alternative syntax for created } ) . on ( 'attached' , function ( ) { // attached to the DOM } ) . on ( 'detached' , function ( ) { // detached from the DOM } ) . on ( 'attribu
【文件预览】:
custom-element-master
----test.js(7KB)
----README.md(632B)
----.gitignore(22B)
----index.js(2KB)
----package.json(1KB)

网友评论