上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页
摘要: ##直接贴代码 ###封装一个方法 /** * @param { * } file input选择后返回的file对象 */ export const compressImage = (file) => { // 参数file,是通过input 选择本地文件获取的 return new Promis 阅读全文
posted @ 2022-11-09 14:16 huihuihero 阅读(137) 评论(0) 推荐(0)
摘要: 卸载Node 1、搜索控制面板,进入并卸载 2、卸载完成,window+r --> cmd -->输入 node -v 检查是否真的卸载完成了 安装nvm 1、下载安装包 在这个地址下载 https://github.com/coreybutler/nvm-windows/releases 2、进行 阅读全文
posted @ 2022-11-07 14:39 huihuihero 阅读(1142) 评论(0) 推荐(0)
摘要: ####友情链接:uniapp中使用websocket实现实时聊天功能 https://www.cnblogs.com/huihuihero/p/13491922.html ##直接贴代码 <div class="chat-content"> <div class="comment-list" id 阅读全文
posted @ 2022-10-12 16:07 huihuihero 阅读(194) 评论(0) 推荐(0)
摘要: ##vuex目录 ##文件内容 ###【store/index.js】 import { createStore } from "vuex"; import modules from "./modules"; const setupStore = (app) => { let storeOption 阅读全文
posted @ 2022-09-26 10:59 huihuihero 阅读(379) 评论(0) 推荐(0)
摘要: 文档,从vue2.x迁移 https://router.vuejs.org/zh/guide/migration/index.html 路由目录 各文件内容 【router/index】 import { createRouter, createWebHashHistory, createWebHi 阅读全文
posted @ 2022-09-23 17:09 huihuihero 阅读(1275) 评论(0) 推荐(0)
摘要: ###注意:使用此方式会使页面比例缩放,所以会导致一些依附于页面比例的功能失效,并且产生一些奇怪的Bug。请勿轻易使用 ##示例图 ##示例代码 //zoom样式设置可以放在任何元素上,不是必须放在app根元素上 <div id="app" :style="`zoom:${scaleRadio}`" 阅读全文
posted @ 2022-09-22 14:11 huihuihero 阅读(2606) 评论(0) 推荐(0)
摘要: 安装依赖 yarn add vue-i18n@next yarn add vue-i18n@9.2.2 # or npm install vue-i18n@next 目录配置 注 语言翻译文档文件可以放在大多数位置,此处放在language文件夹下。 当然也可以在对应模块的文件夹下新建一个文件夹如l 阅读全文
posted @ 2022-09-21 22:44 huihuihero 阅读(3015) 评论(0) 推荐(0)
摘要: ##总结 JS构造函数-实例对象-原型对象之间的关系 构造函数可以实例化对象;(通过构造函数,实例化,创建的就是实例对象。) 构造函数中有一个属性叫prototype,是构造函数的原型对象; 实例对象的原型对象(__proto__)指向的是该构造函数的原型对象(prototype);(实例对象通过_ 阅读全文
posted @ 2022-09-18 18:36 huihuihero 阅读(77) 评论(0) 推荐(0)
摘要: ####转自:https://blog.csdn.net/a1056244734/article/details/121593952 并优化部分代码 ###16进制转rgb hexToRgb(hexStr){ //十六进制颜色值的正则表达式 let reg = /^#([0-9a-fA-f]{3}| 阅读全文
posted @ 2022-09-09 11:12 huihuihero 阅读(1533) 评论(0) 推荐(0)
摘要: ####安装拓展 ####重启vscode,执行ctrl+shift+p指令呼出输入框,输入 vscodecounter ####等待片刻,查看结果 阅读全文
posted @ 2022-08-24 15:56 huihuihero 阅读(413) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页