s2e20 keyup and enter
This commit is contained in:
parent
0de151a58b
commit
36264891e2
4
app.js
4
app.js
@ -13,8 +13,8 @@ var app = new Vue({
|
|||||||
this.x = event.clientX;
|
this.x = event.clientX;
|
||||||
this.y = event.clientY;
|
this.y = event.clientY;
|
||||||
},
|
},
|
||||||
dummy(event){
|
alertMe(event){
|
||||||
event.stopPropagation();
|
alert(event.target.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
<p v-on:mousemove="updateCoordinates">Coordinates {{x}}, {{y}}
|
<p v-on:mousemove="updateCoordinates">Coordinates {{x}}, {{y}}
|
||||||
<span v-on:mousemove.stop.prevent=""> DEAD SPOT</span>
|
<span v-on:mousemove.stop.prevent=""> DEAD SPOT</span>
|
||||||
</p>
|
</p>
|
||||||
|
<input type="text" v-on:keyup.enter='alertMe'>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="app.js" charset="utf-8"></script>
|
<script src="app.js" charset="utf-8"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user