摘要:
<script> //首次出现o的下标索引位置 console.log("helloIndexof".indexOf("o")) //最后一次出现o的下标索引位置 console.log("helloIndexof".lastIndexOf("o")) //在数组中首次出现的下标索引位置 let l 阅读全文
posted @ 2022-11-01 19:24
最帅爸爸
阅读(20)
评论(0)
推荐(0)
摘要:
示图: 代码: <template> <table border="1" width="1000" cellpanding="0" cellspaing="0" style="margin:0 auto"> <tr> <th><input type="checkbox" name="checkAll 阅读全文
posted @ 2022-11-01 10:10
最帅爸爸
阅读(52)
评论(0)
推荐(0)
摘要:
取反,按键处理事件,鼠标左中右事件,form阻止提交,v-on,lazy,number,trim <template> <!-- .delete只在删除键上有效,还有很多,如:enter,esc,等等 --> <!-- 还可以.once指的就是点击一次有效,后面无效 --> <!-- 还可以指定两个 阅读全文
posted @ 2022-11-01 10:07
最帅爸爸
阅读(97)
评论(0)
推荐(0)
摘要:
设置全局参数,调用参数三种方法,阻止默认事件,阻止冒泡,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号