当前位置:网站首页>Thirty What are VM and VC?
Thirty What are VM and VC?
2022-04-23 20:22:00 【Isn't this more popular than Bo people?】
(1) What is? vm? What is? vc?
- VueComponent Instance object of , It will be abbreviated as vc( It can also be called : Component instance object ).
- Vue Instance object of , It will be abbreviated as vm.
(2)VueComponent What is the essence of components ?
- school The essence of a component is a component called VueComponent Constructor for , And not defined by programmers , yes Vue.extend Generated .
- We just need to write or ,Vue When parsing, it will help us create school Component instance objects , namely Vue Help us execute :new VueComponent(options).
- Particular attention : Every time you call Vue.extend, What is returned is a brand new VueComponent!!!!
(3) About this Point to :
- vc In component configuration :data function 、methods The function in 、watch The function in 、computed The function in Their this It's all 【VueComponent Instance object 】.
- new Vue(options) namely vm Configuration in progress :data function 、methods The function in 、watch The function in 、computed The function in Their this It's all 【Vue Instance object 】.
source : Shang Silicon Valley teacher Zhang Tianyu video , Talking about vm and vc An important built-in relationship of .
版权声明
本文为[Isn't this more popular than Bo people?]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232021100386.html
边栏推荐
- An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
- BMP JPEG 图片转换为矢量图像 ContourTrace
- SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
- Numpy sort search count set
- How to protect ECs from hacker attacks?
- [problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
- PCL点云处理之直线与平面的交点计算(五十三)
- 【PTA】L1-002 打印沙漏
- [talkative cloud native] load balancing - the passenger flow of small restaurants has increased
- 论文写作 19: 会议论文与期刊论文的区别
猜你喜欢
Numpy - creation of data type and array
【PTA】整除光棍
16MySQL之DCL 中 COMMIT和ROllBACK
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
DTMF双音多频信号仿真演示系统
Commit and ROLLBACK in DCL of 16mysql
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
RT-1052学习笔记 - GPIO架构分析
随机推荐
Recommend an open source free drawing software draw IO exportable vector graph
Identification of bolt points in aerial photography based on perception
Numpy Index & slice & iteration
如何做产品创新?——产品创新方法论探索一
JDBC database addition, deletion, query and modification tool class
Numpy mathematical function & logical function
Leetcode dynamic planning training camp (1-5 days)
Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
How does onlyoffice solve no route to host
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
Solution to PowerDesigner's failure to connect to MySQL in x64 system
ArcGIS JS version military landmark drawing (dovetail arrow, pincer arrow, assembly area) fan and other custom graphics
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
star
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
R语言ggplot2可视化:ggplot2可视化散点图并使用geom_mark_ellipse函数在数据簇或数据分组的数据点周围添加椭圆进行注释
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线、自定义计算交叉点、自定义配置indifference函数的参数丰富可视化效果