JSFiddle - React, Tailwind, and code Playground
by miloer
HTML
<script src="https://cdn.bootcss.com/vue/1.0.17/vue.min.js"></script>
<div id="app">
<input type="submit" v-on:click="alert">
<button @click="fun">fun</button>
</div>
JavaScript
var vm =new Vue({
el:"#app",
data:{
content:'datacontent'
},
methods:{
alert:function(){
alert(this.ct(1,2));
},
fun:function(event){
alert(this.content);
alert(event.target.tagName);
},
ct:function(a,b){
return a+b;
}
}
})