当前位置:网站首页>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>
边栏推荐
- Day11 ---- 我的页面, 用户信息获取修改与频道接口
- Yolov3 network model building
- If the warehouse management communication is not in place, what problems will occur?
- How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
- The earliest record
- Detailed explanation of shuttle unity interworking principle
- Rd file name conflict when extending a S4 method of some other package
- 第一章:拓广同码小数和s(d, n)
- Win10 share you don't have permission
- Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue
猜你喜欢

These problems should be paid attention to in the production of enterprise promotional videos

04 -- QT OpenGL two sets of shaders draw two triangles

IPv6 experiment

第一章: 舍罕王失算

The earliest record

Chapter 1: recursively find the factorial n of n!

Think of new ways

第一章:喝汽水,阶梯电费计算,阶梯电费计算函数,个人所税,求解平方根不等式,简化求解平方根不等式,求解调和级数不等式,解不等式:d<1+1/2-1/3+1/4+1/5-1/6+..士1/n

Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval

原生表格-滚动-合并功能
随机推荐
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
CMD implements the language conversion of locale non Unicode programs
Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue
Xctf attack and defense world crypto advanced area best_ rsa
Ae/pr/fcpx super visual effects plug-in package fxfactory
Zhang Fei hardware 90 day learning notes - personal record on day 6. Please see my personal profile / homepage for the complete record
2022 - 06 - 30 networker Advanced (XIV) Routing Policy Matching Tool [ACL, IP prefix list] and policy tool [Filter Policy]
Use unique_ PTR forward declaration? [repetition] - forward declaration with unique_ ptr? [duplicate]
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
第一章:求同吗小数和s(d, n)
I didn't cancel
Next spread
Sentinel source code analysis part II - sentinel dashboard console startup and configuration
OSPF - detailed explanation of stub area and full stub area
How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
Floating source code comment (38) parallel job processor
Free hand account sharing in September - [cream Nebula]
NFT without IPFs and completely on the chain?
Free sharing | linefriends hand account inner page | horizontal grid | not for sale
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