当前位置:网站首页>V - memo new instructions
V - memo new instructions
2022-08-02 23:02:00 【The life of an elephant and an ant】
v-memod will remember a subtree of templates,It can be used on both span> elements and components.This command accepts a fixed-length array as a dependency value for [memory comparison].If every value in the array is the same as when it was last rendered, the update of the entire subtree is skipped.Even the VNode creation of a virtual DOM will be skipped because the memoized copy of the subtree can be reused.So the rendering speed will be very fast.It is important to note that: correctly declare the memory array.It is the developer's responsibility to specify the correct dependency array to avoid necessary updates being skipped.<li v-for="item in listArr" :key="item.id" v-memo="['valueA','valueB']">{{ item.name }}</li>v-memod's directive is used less, its role is to : cache part of the data in the template.Create it once and never update it again.That is to say, memory is exchanged for time.边栏推荐
猜你喜欢

Shell: conditional statements

Kali命令ifconfig报错command not found

SQL Server实现group_concat功能

太魔人招新啦|快来加入我们吧!

MySQL安装时一直卡在starting server

ShardingSphere-proxy +PostgreSQL implements read-write separation (static strategy)

扫码预约 | 观看Apache Linkis数据处理实践以及计算治理能力

ShapeableImageView 的使用,告别shape、三方库

溜不溜是个问题

Leetcode刷题——单调栈问题(739每日温度问题、496下一个更大元素I、503下一个更大元素 II)
随机推荐
golang刷leetcode 经典(13) 最小高度树
J9数字论:互联网跨链桥有什么作用呢?
使用位运算实现加减乘除(+、-、*、/)及比较器的用法
J9 Digital Currency Theory: Identifying Web3's New Scarcity: Open Source Developers
EMQX Newsletter 2022-07|EMQX 5.0 正式发布、EMQX Cloud 新增 2 个数据库集成
Kali命令ifconfig报错command not found
golang刷leetcode动态规划(11)不同路径
实现客户服务自助,打造产品知识库
健康报告-设计与实现
golang刷leetcode 数学(1) 丑数系列
二丙二醇甲醚醋酸酯
Therapy | How to Identify and Deal with Negative Thoughts
Parse common methods in the Collection interface that are overridden by subclasses
线程安全(上)
You want the metagenomics - microbiome knowledge in all the (2022.8)
一些不错的博主
Lvm逻辑卷
光源控制器接口定义说明
A Review of Nature Microbiology: Focusing on the Algae--Ecological Interface of Phytoplankton-Bacteria Interactions
模板的进阶