当前位置:网站首页>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.边栏推荐
- Parse the commonly used methods in the List interface that are overridden by subclasses
- LM小型可编程控制器软件(基于CoDeSys)笔记二十五:plc的数据存储区(数字量输入通道部分)
- 日志框架学习
- 【软件工程导论】软件工程导论笔记
- 2022-08-01
- 解析Collection接口中的常用的被实现子类重写的方法
- Parse common methods in the Collection interface that are overridden by subclasses
- ECCV 2022 | 通往数据高效的Transformer目标检测器
- golang刷leetcode 经典(13) 最小高度树
- [安洵杯 2019]easy_web
猜你喜欢
随机推荐
入职对接-hm项目
技术分享 | Apache Linkis 快速集成网页IDE工具 Scriptis
服务器Centos7 静默安装Oracle Database 12.2
The so-called fighting skill again gao also afraid of the chopper - partition, depots, table, and the merits of the distributed
image could not be accessed on a registry to record its digest
AI Scientist: Automatically discover hidden state variables of physical systems
SQL-UDT是什么功能?
牛客题目——滑动窗口的最大值、矩阵最长递增路径、顺时针旋转矩阵、接雨水问题
SQL 嵌套 N 层太长太难写怎么办?
TodoList案例
Electron使用指南之初体验
分享一个 web 应用版本监测 (更新) 的工具库
一些不错的博主
7月29-31 | APACHECON ASIA 2022
Fiddle设置接口数据用指定工具查看;Sublime Text设置json数据格式化转换
TPAMI2022 | TransCL:基于Transformer的压缩学习,更灵活更强大
对话亚洲高校首个博士论文奖-裘捷中丨KDD2022
Meta 与苹果的元宇宙碰撞
golang刷leetcode动态规划(12)最小路径和
【LeetCode】1161. 最大层内元素和









