<button id="button2" v-on:click="clickButton1();clickButton2()">按钮2</button>
		<script>
			var vm=new Vue({
				el:"#button2",
				methods:{
					clickButton1:function(){
						alert("1");
					},
					clickButton2:function(){
						alert("2");
					},
				}			
			});
		</script>

 

Logo

前往低代码交流专区

更多推荐