当前位置:网站首页>v-on基础指令
v-on基础指令
2022-07-27 12:48:00 【不好意思,此人不存在】
v-on基础指令
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>v-on基础</title>
</head>
<body>
<div id="app">
<input type="button" value="v-on指令" v-on:click="doIt">
<input type="button" value="v-简写" @click="doIt">
<input type="button" value="双击事件"@click="doIt">
<h2 @click="changeFood">{
{food}}</h2>
</div>
<script src="/vue.js"></script>
<script> var app = new Vue({
el:"#app", data:{
food:"谁来救救我" }, methods:{
doIt:function(){
alert("做It"); }, changeFood:function(){
this.food+="盖亚!!!" } } }) </script>
</body>
</html>


边栏推荐
- 聊聊feign组件的一个重要类RefectiveFeign
- AMD Adrenalin 22.7.1 驱动更新:OpenGL 性能翻倍,支持微软 Win11 22H2 系统
- SSM practical project - front back separation (easy to understand)
- Will saffron become a safe and effective natural therapy for patients with arthritis?
- [Nuxt 3] (十二) 项目目录结构 2
- Distributed system architecture theory and components
- Basic architecture of data Lake
- 2022 global Vocational Education Industry Development Report
- ArrayList常用方法总结
- Reptile
猜你喜欢

Set接口

Seata's landing practice in ant International Banking

Top 10 international NFT exchanges

How to ask questions on the road for the first time - necessary skills for self-study (with live playback)

V. introduction of other objectives and general options
QT | qcheckbox of control

程序员培训学习后好找工作吗

Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion

Dominoes staged: the beginning and end of the three arrow capital crash

详述throw与throws
随机推荐
ArrayList常用方法总结
flinksql从Oracle同步数据到Doris,一共50几个字段,Oracle表中3000多万条
【萌新解题】斐波那契数列
MySQL扩展
[expression calculation] double stack: general solution of expression calculation problem
Poj1273 drainage ditches [maximum flow] [SAP]
湖仓一体电商项目背景与架构介绍及基础环境准备
CEPH distributed storage performance tuning (6)
From the perspective of it, the CIO of B2B industry talks about how to change from "cost center" to "growth center"?
爱可可AI前沿推介(7.27)
Overview of static inner classes and non static inner classes
nodejs body-parser中间件处理类型 multipart/form-data 的 POST 表单数据,req.body无法接收到数据
「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader
Distributed system architecture theory and components
改变线程状态的方法
2022 global Vocational Education Industry Development Report
Top 10 international NFT exchanges
Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion
概述静态内部类与非静态内部类
BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)