摘要: 1.新建element_index.scss @forward 'element-plus/theme-chalk/src/mixins/config.scss' with ( $namespace: 'vue3' ); 2.main.js中引入element_index.scss import ' 阅读全文
posted @ 2025-06-10 15:15 下铺的大帅比 阅读(180) 评论(0) 推荐(0)
摘要: 一、传统控制类循环 名称 特点 是否可中断 for 最基本语法,带索引 可中断 while 只判断条件,适合不确定循环次数 可中断 do...while 至少执行一次 可中断 for...in 遍历对象的可枚举属(包括原型) 可中断 for...of 遍历可迭代对象的值 可中断 二、数组方法类循环 阅读全文
posted @ 2025-04-07 19:52 下铺的大帅比 阅读(9) 评论(0) 推荐(0)
摘要: 一、连接IndexedDB const request = window.indexedDB.open(dataBaseName,version); 第一个参数:创建的数据库名称 第二个参数:数据库版本号 二、连接IndexedDB的成功、失败、升级事件 onsuccess:当数据库操作成功完成时触 阅读全文
posted @ 2025-04-07 17:49 下铺的大帅比 阅读(300) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/2057654/202404/2057654-20240430152623654-864250999.png) 阅读全文
posted @ 2024-04-30 15:26 下铺的大帅比 阅读(7) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/2057654/202404/2057654-20240430152253934-1409442568.png) 阅读全文
posted @ 2024-04-30 15:22 下铺的大帅比 阅读(15) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/2057654/202404/2057654-20240430152002493-2001976083.png) 阅读全文
posted @ 2024-04-30 15:21 下铺的大帅比 阅读(6) 评论(0) 推荐(0)
摘要: // 连接服务器 const connectServer = () => { socket = new WebSocket('ws://192.168.31.65:1234'); socket.onopen = () => { console.log('WebSocket连接成功'); const 阅读全文
posted @ 2023-06-04 12:58 下铺的大帅比 阅读(185) 评论(0) 推荐(0)
摘要: 浏览器缓存分为:强缓存和协商缓存 缓存:(from memory cache)内存缓存和(from disk cache)磁盘缓存 ###强缓存:状态码为200 不发送请求到服务器,直接读取本地缓存。发送的请求服务器接收不到 1.cache-control:请求头/响应头字段。 2.expires: 阅读全文
posted @ 2023-01-29 19:37 下铺的大帅比 阅读(94) 评论(0) 推荐(0)
摘要: store/index.js import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); import moduleA from "./module/module_a.js" export default new Vuex.Store 阅读全文
posted @ 2021-11-16 14:32 下铺的大帅比 阅读(22) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-08-13 17:42 下铺的大帅比 阅读(75) 评论(0) 推荐(0)