05 2022 档案

摘要:使用生命周期钩子onBeforeMount setup(){ const postData = ref([]) onBeforeMount(async () => { const res = await axios.get('http://localhost:3002/postdata') post 阅读全文
posted @ 2022-05-30 18:52 lijun12138 阅读(1708) 评论(0) 推荐(0) 编辑
摘要:根据条件去除数组中数据 let arr = [ { id: 1, sex: "1" }, { id: 2, sex: "2" }, { id: 3, sex: "1" }, { id: 4, sex: "1" }, { id: 5, sex: "2" }, { id: 6, sex: "1" }, 阅读全文
posted @ 2022-05-18 18:46 lijun12138 阅读(978) 评论(0) 推荐(0) 编辑
摘要:如图,里面的代码转化成es5了,但是最外层依旧是es6 我的babel配置 { test: /\.ts$/, exclude: /node_modules/, use: [ { loader: "babel-loader", options: { presets: [ [ "@babel/prese 阅读全文
posted @ 2022-05-18 18:28 lijun12138 阅读(648) 评论(0) 推荐(0) 编辑
摘要:曾经在3000端口生成了一个server workers 网站,之后每次使用3000端口都是该网站,chrome://serviceworker-internals/ 点击unregister没用 直接清除浏览器设置里的缓存解决 阅读全文
posted @ 2022-05-15 21:29 lijun12138 阅读(487) 评论(0) 推荐(0) 编辑
摘要:目录结构 新建项目,npm init -y package.json: { "name": "vue-ssr2", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "build:client": "cro 阅读全文
posted @ 2022-05-14 18:33 lijun12138 阅读(128) 评论(0) 推荐(0) 编辑
摘要:1.先安装sharp镜像源 npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp" npm config set sharp_libvips_binary_host "https://npm.taobao.org 阅读全文
posted @ 2022-05-14 17:00 lijun12138 阅读(58) 评论(0) 推荐(0) 编辑
摘要:通过a标签下载 exportText(ste) { const blob = new Blob([str]) let date=new Date(); const fileName = '下载案例.txt' const link = document.createElement('a') // 创建 阅读全文
posted @ 2022-05-06 23:50 lijun12138 阅读(1257) 评论(0) 推荐(0) 编辑

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