没有合适的资源?快使用搜索试试~ 我知道了~
snabby:将HTML模板字符串与安全性结合使用
共19个文件
js:6个
html:5个
json:2个
需积分: 10 0 下载量 6 浏览量
2021-03-30
04:05:58
上传
评论
收藏 62KB ZIP 举报
温馨提示
贪食 将Snabbdom与模板字符串一起使用 import html from 'snabby' // Create vnodes: let foo = html ` < div> Hello Earth </ div> ` let bar = html ` < div> Hello Mars </ div> ` // Patch to DOM: html . update ( document . body , foo ) // Patch updates: html . update ( foo , bar ) Snabby用于使用模板字符串创建,并使用(受启发)对节点进行修补。 它使使用变得非常容易和有趣。 安装 Snabby版本2.x是纯es模块。 它要求节点> = v12.17或支持es模块格式的浏览器。 如果要使用较旧的commonjs构建,请使用snabby@1
资源推荐
资源详情
资源评论
收起资源包目录
snabby-main.zip (19个子文件)
snabby-main
.travis.yml 57B
rollup.config.js 379B
index.js 902B
test.js 2KB
package.json 1KB
readme.md 7KB
LICENSE 1KB
package-lock.json 133KB
examples
container-queries.html 2KB
text-input.html 1KB
thunk.html 2KB
counter.html 832B
svg.html 1KB
.gitignore 210B
CHANGELOG.md 743B
.npmrc 19B
create.js 2KB
snabby.js 51KB
snabbdom-containerquery.js 2KB
共 19 条
- 1
资源评论
远离康斯坦丁
- 粉丝: 27
- 资源: 4664
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功