摘要: 方法封装: updateStorage(name, value){ sessionStorage.setItem('name, newVal); const storageEvent = new Event('storage'); Object.defineProperty(storageEvent 阅读全文
posted @ 2023-07-28 17:49 吃饭睡觉打痘痘 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 可抓包,可显示vconsolet调试 一、安装 npm i -g whistle 二、启动 手机和电脑处于同一网络 w2 start --init 浏览器打开地址:http://127.0.0.1:8899/ 三、配置 Rules:https://testh.app.coc.10086.cn whi 阅读全文
posted @ 2023-07-19 15:01 吃饭睡觉打痘痘 阅读(177) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css3-scanner</title> <style> .qr-scanner { position: relative; height: 200px; width: 200px 阅读全文
posted @ 2023-02-02 18:00 吃饭睡觉打痘痘 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 项目中使用px编译后转为rem 安装插件 npm i postcss-pxtorem -D 与package.json同级目录创建postcss.config.js文件 module.exports = { plugins: { autoprefixer: { overrideBrowserslis 阅读全文
posted @ 2022-11-01 10:28 吃饭睡觉打痘痘 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 原因:default-active和index属性不一致导致的 解决方法:使用路由的name属性设置给index和default-active import { useRouter } from "vue-router"; const router = useRouter(); 阅读全文
posted @ 2022-04-12 17:21 吃饭睡觉打痘痘 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: pinia使用 安装 npm i pinia --save 新建store目录,创建index.ts import { createPinia } from "pinia"; const store = createPinia(); export default store; main.ts中使用s 阅读全文
posted @ 2022-04-12 17:14 吃饭睡觉打痘痘 阅读(792) 评论(0) 推荐(1) 编辑
摘要: 百度移动统计 官网:https://mtj.baidu.com/web/welcome/login 小程序接入百度统计 https://mtj.baidu.com/web/overview?appId=xxxxx 接入指南 https://mtj.baidu.com/static/userguide 阅读全文
posted @ 2022-02-28 16:43 吃饭睡觉打痘痘 阅读(265) 评论(0) 推荐(1) 编辑
摘要: 安装依赖 npm i vue-ba --save 在main.js中 import ba from 'vue-ba' Vue.use(ba, 'YOUR_SITEID_HERE') Vue.use(ba, siteId); Vue.use(ba, { siteId}); siteId:是新增网站时获 阅读全文
posted @ 2022-02-24 10:36 吃饭睡觉打痘痘 阅读(608) 评论(0) 推荐(1) 编辑
摘要: import { useRouter, useRoute, ref } from 'vue-router'; const router = useRouter(); const route = useRoute() // 获取所有的路由 const routes = router.getRoutes 阅读全文
posted @ 2022-02-23 17:40 吃饭睡觉打痘痘 阅读(89) 评论(0) 推荐(1) 编辑
摘要: vue3.x中的渲染函数 https://v3.cn.vuejs.org/guide/migration/render-function-api.html#_2-x-%E8%AF%AD%E6%B3%95-4 使用div,img,p等html标签 样式写在style标签里面,其他的属性都单独写在外面 阅读全文
posted @ 2022-02-23 15:39 吃饭睡觉打痘痘 阅读(1190) 评论(0) 推荐(1) 编辑