当前位置:网站首页>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.边栏推荐
猜你喜欢
随机推荐
一款好用的FAQ搭建工具
服务器Centos7 静默安装Oracle Database 12.2
云平台简介
SQL 嵌套 N 层太长太难写怎么办?
使用位运算实现加减乘除(+、-、*、/)及比较器的用法
健康报告-设计与实现
Silver circ: letter with material life insurance products should be by the insurance company is responsible for the management
image could not be accessed on a registry to record its digest
【手撕AHB-APB Bridge】~ AMBA总线 之 APB
腾讯云孟凡杰:我所经历的云原生降本增效最佳实践案例
MaxCompute 的SQL 引擎参数化视图具体有哪些增强功能?
golang刷leetcode 经典(11) 朋友圈
ALV报表学习总结
TPAMI2022 | TransCL:基于Transformer的压缩学习,更灵活更强大
golang刷leetcode 数学(1) 丑数系列
Leetcode刷题——字符串相加相关题目(415. 字符串相加、面试题 02.05. 链表求和、2. 两数相加)
2022-07-26
SQL Server安装教程
解析List接口中的常用的被实现子类重写的方法
MySQL安装(详细,适合小白)


![[安洵杯 2019]easy_web](/img/26/c04bc8b9c65ac75ddd2696b48e1661.png)






