当前位置:网站首页>3. Data binding
3. Data binding
2022-07-03 19:38:00 【Shura MIUI】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Data binding </title>
<script type="text/javascript" src="./vue.js"></script>
</head>
<body>
<div id="root">
<!-- Instruction syntax binding value name -->
<!-- v-bind Is one-way , Data can only be obtained from data Flow page -->
One way data binding <input :value="name" />
<br>
Two way data binding <input v-model="name" />
<!-- v-model When bidirectional , Sure data-> page , You can also page ->data -->
<!-- The following code is wrong ,v-model Can only be applied to form classes input Equal elements -->
<!-- <h2 v-model="name">hello</h2> -->
<!-- v-model:value I could just write it as v-model, because v-model Default collection value value -->
<input type="text" v-model="name"/>
<!-- and v-bind In general use ':',v-model:value In general use v-model -->
</div>
</body>
</html>
<script type="text/javascript">
Vue.config.productionTip = false;
new Vue({
el: '#root',
data: {
name: 'jack',
}
})
</script>
边栏推荐
- Redis master-slave synchronization, clustering, persistence
- Chapter 1: sum of three factorials, graph point scanning
- Rd file name conflict when extending a S4 method of some other package
- Chapter 1: extend the same code decimal sum s (D, n)
- Chapter 1: find all factorial sums, Grand Prix site unified programming, three factorial sums, graphic point scanning, recursive factorial n of n!, Find the factorial n of n!, King Shehan miscalculate
- Using the visualization results, click to appear the corresponding sentence
- 03 -- QT OpenGL EBO draw triangle
- Summary of learning materials and notes of Zhang Fei's actual combat electronics 1-31
- Chapter 1: drinking soft drinks, step tariff calculation, step tariff calculation function, personal income tax, solving square root inequality, simplifying solving square root inequality, solving dem
- If the warehouse management communication is not in place, what problems will occur?
猜你喜欢
2022.2.14 Li Kou - daily question - single element in an ordered array
Chapter 2: find the classical solution of the maximum Convention and the least common multiple of a and B, find the conventional solution of the maximum Convention and the least common multiple of a a
Today's work summary and plan: February 14, 2022
This Chinese numpy quick look-up table is too easy!
第二十章:y= sin(x)/x,漫步坐标系计算,y= sin(x)/x 带廓幅图形,奥运五环,小球滚动与弹跳,流水显示,矩形优化裁剪,r个皇后全控nxn棋盘
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
第二章:基于分解的求水仙花数,基于组合的求水仙花数, 兰德尔数,求[x,y]内的守形数,探求n位守形数,递推探索n位逐位整除数
2022-06-30 advanced network engineering (XIV) routing strategy - matching tools [ACL, IP prefix list], policy tools [filter policy]
Free hand account sharing in September - [cream Nebula]
Free year-end report summary template Welfare Collection
随机推荐
JMeter connection database
Part 27 supplement (27) buttons of QML basic elements
2022-06-28 网工进阶(十三)IS-IS-路由过滤、路由汇总、认证、影响ISIS邻居关系建立的因素、其他命令和特性
Go home early today
04 -- QT OpenGL two sets of shaders draw two triangles
2022-06-27 advanced network engineering (XII) IS-IS overhead type, overhead calculation, LSP processing mechanism, route revocation, route penetration
PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?
If the warehouse management communication is not in place, what problems will occur?
Using the visualization results, click to appear the corresponding sentence
01. Preparation for automated office (free guidance, only three steps)
Chapter 2: 4-digit Kaplan number, search even digit Kaplan number, search n-digit 2-segment sum square number, m-digit ingenious square number without 0, specify the number to form a 7-digit square nu
Yolov3 network model building
Pecan - route
2022.2.14 Li Kou - daily question - single element in an ordered array
Day10 ---- 强制登录, token刷新与jwt禁用
Next spread
Chapter 1: King Shehan miscalculated
BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply
5- (4-nitrophenyl) - 10,15,20-triphenylporphyrin ntpph2/ntppzn/ntppmn/ntppfe/ntppni/ntppcu/ntppcd/ntppco and other metal complexes
03 -- QT OpenGL EBO draw triangle