上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: All 传入是一个数组 function imageLoad(arr){ //已经加载完的图片数量 let loadeImage = 0 //存放图片的数组 let newImages = [] return new Promise((resolve, reject) => { for (let i 阅读全文
posted @ 2021-07-07 14:01 小泽沐优声 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Nginx Vue代理 更改nginx文件下的nginx.conf,内容如下。 # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # 阅读全文
posted @ 2021-07-05 17:42 小泽沐优声 阅读(503) 评论(0) 推荐(0) 编辑
摘要: #BAT 放在根目录,双击即可启动。 @echo off echo. echo [信息] 使用 Vue 运行 Web 工程。 echo. %~d0 cd %~dp0 npm start pause 阅读全文
posted @ 2021-06-29 09:51 小泽沐优声 阅读(32) 评论(0) 推荐(0) 编辑
摘要: (1 )设置用户名称和登录邮箱 git config --global user.name '用户名称' git config --global user.email '登录邮箱' 查看自己的用户名称和登陆邮箱 git config user.name //获取当前登录的用户 git config 阅读全文
posted @ 2021-06-22 11:05 小泽沐优声 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 时间差 从月向后排,满足1则返回。 function time(date1,date2){ let numb = date2.getTime() - date1.getTime(); let min = numb/1000/60; let s = numb/1000; let hours = num 阅读全文
posted @ 2021-06-19 15:14 小泽沐优声 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 代码 dateFormat(fmt, date) { let ret; const opt = { "Y+": date.getFullYear().toString(), // 年 "m+": (date.getMonth() + 1).toString(), // 月 "d+": date.ge 阅读全文
posted @ 2021-06-19 14:32 小泽沐优声 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 适配 安装 安装postcss-px-to-viewport插件,该插件的作用是把项目中style标签内的px在编译后转化为vw. 我们在项目中写px,在执行npm run serve后查看界面会发现px已经转化为vw了. 注意!对于非style标签的px是无法转化为vw的. npm install 阅读全文
posted @ 2021-06-15 20:08 小泽沐优声 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 谷歌打开扩展 chrome://extensions/manage/index 阅读全文
posted @ 2021-06-13 20:37 小泽沐优声 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 代码 function toThousands(num) { return (num || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,'); } 阅读全文
posted @ 2021-06-09 15:10 小泽沐优声 阅读(46) 评论(0) 推荐(0) 编辑
摘要: H5禁止用户缩放页面 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> 阅读全文
posted @ 2021-06-04 17:06 小泽沐优声 阅读(46) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页