MCPcopy Create free account
hub / github.com/ygs-code/vue / markOnce

Function markOnce

vue.js:5640–5646  ·  view source on GitHub ↗

* Runtime helper for v-once. v的运行时助手。 * Effectively it means marking the node as static with a unique key. * 实际上,这意味着使用唯一键将节点标记为静态。 * 标志 v-once. 指令

(tree,
        index,
        key)

Source from the content-addressed store, hash-verified

5638 * 标志 v-once. 指令
5639 */
5640 function markOnce(tree,
5641 index,
5642 key) {
5643 //循环标志静态的vonde 虚拟dom
5644 markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
5645 return tree
5646 }
5647
5648 //循环标志静态的vonde 虚拟dom
5649 function markStatic(tree, //树

Callers

nothing calls this directly

Calls 1

markStaticFunction · 0.85

Tested by

no test coverage detected