摘要: vue循环遍历对象、数组和字符串 1.循环遍历对象 1.1vue 在html里面循环遍历对象 v-for=" (val, key , i) in dimItemMap" :key="key" val-每一项 key -key值 i-第几个 <el-table-column prop="score" 阅读全文
posted @ 2023-10-09 14:11 潇潇-lucky 阅读(2788) 评论(0) 推荐(0) 编辑
摘要: 1、watch 使用 watch(监听数据源,执行函数,[配置参数]) //配置参数: 立即执行 深度监听 {immediate: true, deep: true } 1.1 监听基本数据类型单一数据源 <script setup> import {ref, watch} from 'vue' l 阅读全文
posted @ 2023-09-13 11:19 潇潇-lucky 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 转自:原文链接:https://blog.csdn.net/weixin_43295498/article/details/130939488 代码说明 代码主要分为以下几个部分: import导入模块。在这个代码段中,我们导入了axios和element-plus两个模块,并对其进行了解构。 定义 阅读全文
posted @ 2023-09-11 13:51 潇潇-lucky 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 多文件格式在线预览 https://www.idocv.com/examples.html 阅读全文
posted @ 2023-08-31 10:00 潇潇-lucky 阅读(4) 评论(0) 推荐(0) 编辑
摘要: common.js // 防抖 export const debounce = function(method, delay) { // 定时器,用来 setTimeout var timer; // 返回一个函数,这个函数会在一个时间区间结束后的 delay 毫秒时执行 fn 函数 return 阅读全文
posted @ 2022-10-14 10:56 潇潇-lucky 阅读(186) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios'; class requstHelper { static fetch = (url, data, option = {}) => { console.log(option.isLocation ? url : `${process.env.API_ 阅读全文
posted @ 2022-05-24 14:08 潇潇-lucky 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1、判断当前时间到达某一指定时间 isOnTime () { let now = new Date() //当前时间 //如果传2022-02-22 14:15:00要转化成 2022/02/22 14:15:00 let startTime = '2022-05-26 24:00:00' // l 阅读全文
posted @ 2022-05-24 11:11 潇潇-lucky 阅读(70) 评论(0) 推荐(0) 编辑
摘要: java学习手册:https://blog.csdn.net/qq_41941875/article/details/104727235 JAVA内容:https://blog.csdn.net/nyima_langka/vue插件库:https://www.vue365.cn/vue-image- 阅读全文
posted @ 2022-02-09 10:51 潇潇-lucky 阅读(27) 评论(0) 推荐(0) 编辑
摘要: eg: var person = { name:'candice' } copy(person) 1、右键点击需要处理的对象,会出现Store as global variable,点击 2、选择之后会发现控制台出现以temp开头的变量 3.执行 copy(变量)。如copy(temp2)。注意是对 阅读全文
posted @ 2021-10-18 10:00 潇潇-lucky 阅读(68) 评论(0) 推荐(0) 编辑
摘要: https://juejin.cn/post/7012012633180078117 h5-api,整理了一些常用的工具,地址:https://www.npmjs.com/package/h5-api 1、轮播 swiper:https://www.swiper.com.cn/demo/index. 阅读全文
posted @ 2021-10-08 17:29 潇潇-lucky 阅读(156) 评论(0) 推荐(0) 编辑