当前位置:网站首页>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>
边栏推荐
- UE source code analysis: uccharactermovementcomponent - rootmotion
- Read the paper glodyne global topology preserving dynamic network embedding
- 第一章:拓广同码小数和s(d, n)
- Cross compile opencv with contrib
- Day11 ---- 我的页面, 用户信息获取修改与频道接口
- These problems should be paid attention to in the production of enterprise promotional videos
- JMeter connection database
- Zhang Fei hardware 90 day learning notes - personal record on day 6. Please see my personal profile / homepage for the complete record
- [optics] vortex generation based on MATLAB [including Matlab source code 1927]
- [wallpaper] (commercially available) 70 wallpaper HD free
猜你喜欢

原生表格-滚动-合并功能

2022-06-25 advanced network engineering (XI) IS-IS synchronization process of three tables (neighbor table, routing table, link state database table), LSP, cSNP, psnp, LSP
![[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]](/img/aa/9980acc9839f067202d46faabbf029.png)
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]

Today's work summary and plan: February 14, 2022

Day18 - basis of interface testing

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

2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)

BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply
![Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles](/img/70/6fd00146418e5d481e951d51428990.png)
Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
![第二章:基于分解的求水仙花数,基于组合的求水仙花数, 兰德尔数,求[x,y]内的守形数,探求n位守形数,递推探索n位逐位整除数](/img/c5/0081689817700770f6210d50ec4e1f.png)
第二章:基于分解的求水仙花数,基于组合的求水仙花数, 兰德尔数,求[x,y]内的守形数,探求n位守形数,递推探索n位逐位整除数
随机推荐
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
第一章:求同吗小数和s(d, n)
2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透
原生表格-滚动-合并功能
Cross compile opencv with contrib
交叉编译Opencv带Contrib
Part 27 supplement (27) buttons of QML basic elements
FPGA 学习笔记:Vivado 2019.1 工程创建
Summary of composition materials for 2020 high-frequency examination center of educational resources
Luogu-p1107 [bjwc2008] Lei Tao's kitten
Random numbers in a long range, is that right- Random number in long range, is this the way?
PR 2021 quick start tutorial, how to create a new sequence and set parameters?
Read the paper glodyne global topology preserving dynamic network embedding
BOC protected alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC supplied by Qiyu
2022 - 06 - 30 networker Advanced (XIV) Routing Policy Matching Tool [ACL, IP prefix list] and policy tool [Filter Policy]
Merge K ascending linked lists
Think of new ways
2022.2.14 Li Kou - daily question - single element in an ordered array
IPv6 experiment
How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]