Live2d Test Env
摘要: 说明 由于移动端项目在手机中调试时不能使用chrome的控制台,而vconsole是对pc端console的改写 使用方法 使用 npm 安装: 1 npm install vconsole 使用webpack,然后js代码中: 1 import VConsole from 'vconsole/di 阅读全文
posted @ 2020-01-09 15:09 小猪(朱) 阅读(1707) 评论(0) 推荐(0) 编辑
摘要: 1 $("#osd").css("cursor","url(/pmt/sassafras10.ico) 64 64 ,pointer"); url地址一定要写对,使用绝对路径。我这里是cli3.0引入静态资源的写法 64 64 这两个数字 是光标的位置,你尝试一下就会明白 pointer 是给光标一 阅读全文
posted @ 2019-12-18 09:27 小猪(朱) 阅读(3197) 评论(0) 推荐(0) 编辑
摘要: 1 async downloadFun() { // 下载使用说明书 2 const InstructionManualvv = await InstructionManual(); 3 4 let blob = new Blob([InstructionManualvv.data], {type: 阅读全文
posted @ 2019-12-04 19:14 小猪(朱) 阅读(6919) 评论(0) 推荐(0) 编辑
摘要: 公共js: 1 export const disableBrowserBack = (param) => { 2 return (function () { 3 history.pushState(null, null, document.URL); 4 if (window.history && 阅读全文
posted @ 2019-12-04 17:32 小猪(朱) 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 1 // 引入jq 2 mounted() { // 看好周期 3 disableBrowserBack(); 4 history.pushState(null, null, document.URL); 5 if (window.history && window.history.pushStat 阅读全文
posted @ 2019-12-04 17:06 小猪(朱) 阅读(1458) 评论(0) 推荐(0) 编辑
摘要: 需求分析在做项目的时候遇到了一个这样需求,用户在选择没有结单的Table的时候,可以选择多个没有支付的订单进行加入一个统一结账的“购物车”中,那么可以选择任意页的,这个时候就遇到一个我们经常会遇到的问题了,那就是当我们切换页码的时候,之前用户选择的一些选项的选中状态就会消失了,这个是我们接受不了的, 阅读全文
posted @ 2019-12-03 13:34 小猪(朱) 阅读(1271) 评论(1) 推荐(0) 编辑
摘要: 1 .dialog-body /deep/ .el-radio-group { 2 width: 70%; 3 margin-top: 30px; 4 } .dialog-body 为父元素 .el-radio-group 为要修改的element样式 阅读全文
posted @ 2019-12-02 09:57 小猪(朱) 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1 <script> 2 document.write("<s"+"cript type='text/javascript' src='../utils/getUrl.js?112"+Math.random()+"'></scr"+"ipt>"); 3 </script> 刷新页面,重新加载js,清 阅读全文
posted @ 2019-11-28 09:47 小猪(朱) 阅读(1660) 评论(0) 推荐(0) 编辑
摘要: html部分: 1 <div> 2 <div style=" width: 220px; margin: 20px auto 0;"> 3 <el-date-picker 4 v-model="startDate" 5 type="date" 6 placeholder="选择开始日期" 7 for 阅读全文
posted @ 2019-11-28 09:29 小猪(朱) 阅读(3332) 评论(0) 推荐(0) 编辑
摘要: 登录页登录成功后保存token 1 / 保存用户名 2 sessionStorage.setItem("username", data.user.name); 3 sessionStorage.setItem("token", data.token); 4 sessionStorage.setIte 阅读全文
posted @ 2019-11-28 09:25 小猪(朱) 阅读(978) 评论(0) 推荐(0) 编辑