We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://developer.mozilla.org/zh-CN/docs/Web/API/Document/createComment
createComment() 方法用来创建并返回一个注释节点.
var commentNode = document.createComment('注释') document.querySelector('body').appendChild(commentNode)
api 是在看 snabbdom 源码的时候发现的
// init.ts const sel = vnode.sel; if (sel === "!") { if (isUndef(vnode.text)) { vnode.text = ""; } vnode.elm = api.createComment(vnode.text!); } h("!", "注释"),
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://developer.mozilla.org/zh-CN/docs/Web/API/Document/createComment
createComment() 方法用来创建并返回一个注释节点.
api 是在看 snabbdom 源码的时候发现的
The text was updated successfully, but these errors were encountered: