当前位置:网站首页>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>
边栏推荐
- [wallpaper] (commercially available) 70 wallpaper HD free
- 04 -- QT OpenGL two sets of shaders draw two triangles
- The earliest record
- Using the visualization results, click to appear the corresponding sentence
- Basic principle of LSM tree
- 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
- Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue
- Common text labels
- 第一章:喝汽水,阶梯电费计算,阶梯电费计算函数,个人所税,求解平方根不等式,简化求解平方根不等式,求解调和级数不等式,解不等式:d<1+1/2-1/3+1/4+1/5-1/6+..士1/n
- Think of new ways
猜你喜欢

第一章: 舍罕王失算

2022-06-30 網工進階(十四)路由策略-匹配工具【ACL、IP-Prefix List】、策略工具【Filter-Policy】

Chapter 1: sum of three factorials, graph point scanning

Free sharing | linefriends hand account inner page | horizontal grid | not for sale

Merge K ascending linked lists

NFT without IPFs and completely on the chain?

PR 2021 quick start tutorial, how to create a new sequence and set parameters?

Chapter 1: seek common? Decimal and S (D, n)

Acquisition and transmission of parameters in automatic testing of JMeter interface

BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply
随机推荐
Zhang Fei hardware 90 day learning notes - personal records on day 2, please see my personal profile / homepage for the complete
P1891 crazy LCM (Euler function)
2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透
I study database at station B (4): DQL
第一章:求n的阶乘n!
Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval
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
BOC protected tryptophan zinc porphyrin (Zn · TAPP Trp BOC) / copper porphyrin (Cu · TAPP Trp BOC) / cobalt porphyrin (cobalt · TAPP Trp BOC) / iron porphyrin (Fe · TAPP Trp BOC) / Qiyue supply
Redis master-slave synchronization, clustering, persistence
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
第二章:求长方体数组,指定区间内的完全数,改进指定区间内的完全数
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
Think of new ways
第二章:求a,b的最大公约与最小公倍数经典求解,求a,b的最大公约与最小公倍数常规求解,求n个正整数的的最大公约与最小公倍数
Native table - scroll - merge function
03 -- QT OpenGL EBO draw triangle
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
Buuctf's different flags and simplerev
2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)
第二章:基于分解的求水仙花数,基于组合的求水仙花数, 兰德尔数,求[x,y]内的守形数,探求n位守形数,递推探索n位逐位整除数