04 2022 档案

摘要:html: <a @click="changeHash('#row')"> {{ $t("msg.desc1") }} </a> js: 方法: changeHash(idName) { document.querySelector(idName).scrollIntoView(true); }, 阅读全文
posted @ 2022-04-29 16:05 koo- 阅读(178) 评论(0) 推荐(0) 编辑
摘要:var mobile_bs = { versions: function () { var u = navigator.userAgent; return { trident: u.indexOf('Trident') > -1, //IE presto: u.indexOf('Presto') > 阅读全文
posted @ 2022-04-29 11:55 koo- 阅读(153) 评论(0) 推荐(0) 编辑
摘要:function GetQueryString(name) { let url = window.location.href; let arr = url.split(name); if(arr[1] && arr[1].length > 0) { return arr[1]; } return n 阅读全文
posted @ 2022-04-29 11:51 koo- 阅读(20) 评论(0) 推荐(0) 编辑
摘要:在需要跳到的页面加: function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg) 阅读全文
posted @ 2022-04-28 18:37 koo- 阅读(143) 评论(0) 推荐(0) 编辑
摘要:1.npm i vue-i18n 2. 3.main.js 4.vue页面 阅读全文
posted @ 2022-04-22 10:57 koo- 阅读(63) 评论(0) 推荐(0) 编辑
摘要:1.在asstes文件夹新建 2.在main.js读取本地json语言包 3.在vue页面t这样引用 阅读全文
posted @ 2022-04-21 20:55 koo- 阅读(110) 评论(0) 推荐(0) 编辑
摘要:1.pdf分页显示 2.没有分页 阅读全文
posted @ 2022-04-20 17:16 koo- 阅读(233) 评论(0) 推荐(0) 编辑
摘要:1.安装lib-flexible 终端执行命令:npm i lib-flexible --save 2.在main.js引入lib-flexible 3.终端执行命令:npm install postcss-pxtorem@5.1.1 4.在.postcssrc.js添加代码 5.在根目录建文件 阅读全文
posted @ 2022-04-20 10:43 koo- 阅读(58) 评论(0) 推荐(0) 编辑
摘要:解决:.catch()不能省略(因为取消操作时,无法捕获) .then(res => {...}) .catch(()=>{});(then之后把catch加上) 阅读全文
posted @ 2022-04-01 11:13 koo- 阅读(176) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示