当前位置:网站首页>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
边栏推荐
- Unity 模型整体更改材质
- 网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
- Remote code execution in Win 11 using wpad / PAC and JScript
- Five minutes to show you what JWT is
- Analysis of the relationship between generalized Bim and CAD under the current background
- 【PTA】整除光棍
- 【PTA】L1-006 连续因子
- How can matlab obtain the truncated image in trainingimagelabeler
- Recommend an open source free drawing software draw IO exportable vector graph
- 中金财富公司怎么样,开户安全吗
猜你喜欢
16MySQL之DCL 中 COMMIT和ROllBACK
Commit and rollback in DCL of 16 MySQL
BMP JPEG 图片转换为矢量图像 ContourTrace
DNS cloud school rising posture! Three advanced uses of authoritative DNS
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
【PTA】整除光棍
Computing the intersection of two planes in PCL point cloud processing (51)
【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
随机推荐
Numpy mathematical function & logical function
star
Still using listview? Use animatedlist to make list elements move
Paper writing 19: the difference between conference papers and journal papers
On BIM data redundancy theory
How can matlab obtain the truncated image in trainingimagelabeler
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
JDBC tool class jdbcconutil gets the connection to the database
上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
Handwritten Google's first generation distributed computing framework MapReduce
LeetCode动态规划训练营(1~5天)
R language ggplot2 visualization: ggplot2 visualizes the scatter diagram and uses geom_ mark_ The ellipse function adds ellipses around data points of data clusters or data groups for annotation
JDBC database addition, deletion, query and modification tool class
Cadence Orcad Capture CIS更换元器件之Link Database 功能介绍图文教程及视频演示
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
NC basic usage 2
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
BMP JPEG 图片转换为矢量图像 ContourTrace