摘要: image: node:16.15.0 #表示使用有nodejs环境的docker,自己项目用的什么版本这就写什么版本 stages: - deploy pages: #!!!必须!!!使用pages关键字 stage: deploy script: - npm install - npm run 阅读全文
posted @ 2023-12-11 14:52 杜柯枫 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 问题 有三张牌只有一张有奖,任选一张后主持人翻开剩余两张之中没奖的一张,此时有一次换牌机会,换还是不换呢 先来实验 function fn() { // 模拟中奖卡牌 let arr = [0, 0, 0] let index = ~~(Math.random() * 3) arr[index] = 阅读全文
posted @ 2023-11-29 11:48 杜柯枫 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 设计思路 固定数据表 键值对表 用于存储数据库相关的信息 库字段构成表 储存非固定数据表结构 非固定数据表 通过库字段构成表进行创建或更新 划重点 数据库初始创建或更新后会先触发onupgradeneeded方法,然后再触发onsuccess方法,如果在onupgradeneeded方法中执行了表结 阅读全文
posted @ 2023-11-21 11:06 杜柯枫 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 先来代码 <script lang="ts"> import { Fragment, Comment, defineComponent, h, isVNode, renderSlot, PropType } from 'vue'; import { ElRow, ElCol } from 'elem 阅读全文
posted @ 2023-09-25 16:54 杜柯枫 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 展开 Object.values(treeRef.value.store.nodesMap).forEach((v) => v.expand()) 折叠 Object.values(treeRef.value.store.nodesMap).forEach((v) => v.collapse()) 阅读全文
posted @ 2023-08-22 14:31 杜柯枫 阅读(302) 评论(0) 推荐(1) 编辑
摘要: /** 延迟函数集合 */ const delayFnMap = {} /** * 等待延迟函数执行(默认执行清理延迟函数,可在等待时间中替换为实际操作函数) * @param {string} key:标记区分 * @param {number} time:等待时间 */ function del 阅读全文
posted @ 2023-08-02 16:08 杜柯枫 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 谷歌浏览器websql数据库文件位置:\Users\用户名\AppData\Local\Google\Chrome\User Data\Default\databases 阅读全文
posted @ 2023-04-21 17:15 杜柯枫 阅读(96) 评论(0) 推荐(0) 编辑
摘要: webpack let modules = require.context('./modules', false, /\.ts$/), modules.keys().forEach((key) => { let item = files(key).default console.log(item) 阅读全文
posted @ 2023-04-07 11:13 杜柯枫 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Electron + Vue3 + TS + sqlite3项目搭建 基础环境 node v16.15.0 npm v8.5.5 yarn v1.22.19 安装vue-cli $ npm install @vue/cli@5.0.8 -g // 等待安装完成 $ vue -V // @vue/cl 阅读全文
posted @ 2023-03-17 13:45 杜柯枫 阅读(979) 评论(0) 推荐(0) 编辑