当前位置:网站首页>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>
边栏推荐
- Part 27 supplement (27) buttons of QML basic elements
- Common text labels
- Day10 -- forced login, token refresh and JWT disable
- Web Security (VIII) what is CSRF attack? Why can token prevent csdf attacks?
- 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
- Go home early today
- 10 smart contract developer tools that miss and lose
- 2022-06-30 網工進階(十四)路由策略-匹配工具【ACL、IP-Prefix List】、策略工具【Filter-Policy】
- 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
- Chapter 1: sum of three factorials, graph point scanning
猜你喜欢
Sentinel source code analysis part I sentinel overview
Chapter 2: find the number of daffodils based on decomposition, find the number of daffodils based on combination, find the conformal number in [x, y], explore the n-bit conformal number, recursively
Ego planner code parsing Bspline_ Optimizer section (3)
Today's work summary and plan: February 14, 2022
Ae/pr/fcpx super visual effects plug-in package fxfactory
kubernetes集群搭建efk日志收集平台
01. Preparation for automated office (free guidance, only three steps)
Day_ 18 IO stream system
第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
Chapter 1: seek common? Decimal and S (D, n)
随机推荐
BOC protected phenylalanine zinc porphyrin (Zn · TAPP Phe BOC) / iron porphyrin (Fe · TAPP Phe BOC) / nickel porphyrin (Ni · TAPP Phe BOC) / manganese porphyrin (Mn · TAPP Phe BOC) Qiyue Keke
Free sharing | linefriends hand account inner page | horizontal grid | not for sale
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
Pecan — Overview
[optics] vortex generation based on MATLAB [including Matlab source code 1927]
2022 Xinjiang latest road transportation safety officer simulation examination questions and answers
Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue
2022-07-02 网工进阶(十五)路由策略-Route-Policy特性、策略路由(Policy-Based Routing)、MQC(模块化QoS命令行)
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
Valentine's Day - make an exclusive digital collection for your lover
Day10 -- forced login, token refresh and JWT disable
Day10 ---- 强制登录, token刷新与jwt禁用
Ego planner code parsing Bspline_ Optimizer section (1)
Summary of 90 day learning materials and notes of Zhang Fei's actual electronic hardware engineer
Chapitre 1: le roi de shehan a mal calculé
第一章:三位阶乘和数,图形点扫描
Utilisation de base du cadre unitest
Day18 - basis of interface testing
Ego planner code parsing Bspline_ Optimizer section (3)
Read the paper glodyne global topology preserving dynamic network embedding