没有合适的资源?快使用搜索试试~ 我知道了~
zhtml:ZHTML-再也不要“ document.createElement”
共9个文件
js:3个
yml:1个
md:1个
需积分: 5 0 下载量 85 浏览量
2021-05-23
20:50:44
上传
评论
收藏 10KB ZIP 举报
温馨提示
ZHTML 安装 将zhmlt.js复制到您的项目中。 从zhtml.js导入html和svg函数。 import { html , svg } from './path/to/zhtml.js' ; 用法 html和svg函数将字符串模板具体化为DOM。 如果字符串模板具有多个顶级节点,则函数将返回DocumentFragment 。 // Create a DIV element. const div = html ` < div> </ div> ` ; // similar to html`<div>` // Create just a text node. const textNode = html `just some text` ; // This returns DocumentFragment const fragment = html ` < a> one
资源推荐
资源详情
资源评论
收起资源包目录
zhtml-master.zip (9个子文件)
zhtml-master
.github
workflows
tests.yml 621B
zhtml.spec.js 10KB
test.js 1KB
LICENSE 1KB
README.md 4KB
.gitignore 203B
zhtml.js 7KB
demo.html 2KB
package.json 358B
共 9 条
- 1
资源评论
量子学园
- 粉丝: 22
- 资源: 4734
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功