摘要:
设置全局参数,调用参数三种方法,阻止默认事件,阻止冒泡,capture捕获 设置全局参数 main.ts import { createApp } from 'vue' import App from './App.vue' import router from './router' let app 阅读全文
posted @ 2022-11-01 10:02
最帅爸爸
阅读(45)
评论(0)
推荐(0)
摘要:
连接数据库实现数据防抖 shake.js export function shake(fn,delay){ let time=null; return function(){ let parameter=arguments; if(time){ clearTimeout(time); } time= 阅读全文
posted @ 2022-11-01 09:56
最帅爸爸
阅读(34)
评论(0)
推荐(0)
摘要:
<template> <h2>姓名:{{user.name}}</h2> <h2>姓名:{{user.age}}</h2> <h2>姓名:{{user.job.salsry}}k</h2> <button @click="user.name+='%'">修改姓名</button> <button @ 阅读全文
posted @ 2022-11-01 09:54
最帅爸爸
阅读(42)
评论(0)
推荐(0)
摘要:
使用方法,computed,watch,watchEffect完成加减乘除 <template> <h1>方法</h1> <input type="text" v-model="input3" @input="meth()"> + <input type="text" v-model="input4 阅读全文
posted @ 2022-11-01 09:52
最帅爸爸
阅读(58)
评论(0)
推荐(0)
浙公网安备 33010602011771号