This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<textarea v-model="message"></textarea> | |
<h1>{{message}}</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<textarea v-model="message"></textarea> | |
<h1>{{message}}</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<!-- 多行字串 --> | |
<!-- <textarea type="text" v-model="message">message</textarea> --> | |
<textarea @input="setMessage"></textarea> | |
<pre>{{message}}</pre> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<!-- <input type="text" v-model="message"> --> | |
<input type="text" :value="message" @input="setMessage"> | |
<h1>{{message}}</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<input type="checkbox" :checked="selected"> | |
<button @click="toggle">toggle</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<button :type="selected">selected</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<div class="box" @click.self="msg = 'c'"> | |
<div class="box" @click.self="msg = 'b'"> | |
<div class="box" @click.stop="msg = 'a'"> | |
</div> | |
</div> | |
</div> | |
<h1>{{msg}}</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<div class="box" @click="msg = 'c'"> | |
<div class="box" @click="msg = 'b'"> | |
<div class="box" @click="msg = 'a'"> | |
</div> | |
</div> | |
</div> | |
<h1>{{msg}}</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<div class="box" @click="msg = 'a'"> | |
<div class="box" @click="msg = 'b'"> | |
<div class="box" @click="msg = 'c'"> | |
</div> | |
</div> | |
</div> | |
<h1>{{msg}}</h1> | |
</div> |