当前位置:网站首页>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>


边栏推荐
- 概述有名内部类与匿名内部类
- Poj1273 drainage ditches [maximum flow] [SAP]
- Feign的整体流程
- Error: the source of the existing CacheManager is: urlconfigurationsource
- 2022 global Vocational Education Industry Development Report
- MySQL extensions
- How to ask questions on the road for the first time - necessary skills for self-study (with live playback)
- js真伪数组转换
- MySQL扩展
- Feign的两个调用处理器
猜你喜欢

How can the top 500 enterprises improve their R & D efficiency? Let's see what industry experts say!

概述有名内部类与匿名内部类

Basic architecture of data Lake

From the perspective of it, the CIO of B2B industry talks about how to change from "cost center" to "growth center"?

Distributed system architecture theory and components

Mixin\ plug in \scoped style

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

ECCV2022 | RU&谷歌提出用CLIP进行zero-shot目标检测!

初学者入门:使用WordPress搭建一个专属自己的博客

Error: the source of the existing CacheManager is: urlconfigurationsource
随机推荐
2022 global Vocational Education Industry Development Report
POJ1611_ The Suspects
Feign的整体流程
Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion
分布式系统架构理论与组件
Feign的两个调用处理器
Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions
最新版泛域名证书申请
Lambda expression
AMD Adrenalin 22.7.1 驱动更新:OpenGL 性能翻倍,支持微软 Win11 22H2 系统
QT | qcheckbox of control
Basic architecture of data Lake
MySQL extensions
改变线程状态的方法
NFT mall /nft blind box / virtual blind box /nft transaction / customizable second opening
How to ask questions on the road for the first time - necessary skills for self-study (with live playback)
[nuxt 3] (XII) project directory structure 2
Flinksql synchronizes data from Oracle to Doris, with a total of more than 50 fields and more than 30 million entries in Oracle tables
JS true / false array conversion
From the perspective of it, the CIO of B2B industry talks about how to change from "cost center" to "growth center"?