Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Tencent/kbone
/ cloneNode
Method
cloneNode
packages/miniprogram-render/src/node/comment.js:73–77 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
71
}
72
73
cloneNode() {
74
return
this.ownerDocument.$$createComment({
75
nodeId: `b-${tool.getId()}`,
// 运行时生成,使用 b- 前缀
76
})
77
}
78
}
79
80
module.exports = Comment
Callers
nothing calls this directly
Calls
1
$$createComment
Method · 0.80
Tested by
no test coverage detected