会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吃饭睡觉打痘痘
博客园
首页
新随笔
联系
订阅
管理
2023年7月28日
监听storage中数据的变化
摘要: 方法封装: updateStorage(name, value){ sessionStorage.setItem('name, newVal); const storageEvent = new Event('storage'); Object.defineProperty(storageEvent
阅读全文
posted @ 2023-07-28 17:49 吃饭睡觉打痘痘
阅读(127)
评论(0)
推荐(0)
2023年7月19日
Whistle(基于Node实现的跨平台转包调试工具)的使用
摘要: 可抓包,可显示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 吃饭睡觉打痘痘
阅读(252)
评论(0)
推荐(0)
2023年2月2日
css 实现二维码扫描效果
摘要: <!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 17:59 吃饭睡觉打痘痘
阅读(345)
评论(0)
推荐(0)
2022年11月1日
移动端适配
摘要: 项目中使用px编译后转为rem 安装插件 npm i postcss-pxtorem -D 与package.json同级目录创建postcss.config.js文件 module.exports = { plugins: { autoprefixer: { overrideBrowserslis
阅读全文
posted @ 2022-11-01 10:28 吃饭睡觉打痘痘
阅读(20)
评论(0)
推荐(0)
2022年4月12日
vue3中使用element-ui 菜单栏(el-menu)点击两次才高亮的bug
摘要: 原因:default-active和index属性不一致导致的 解决方法:使用路由的name属性设置给index和default-active import { useRouter } from "vue-router"; const router = useRouter();
阅读全文
posted @ 2022-04-12 17:21 吃饭睡觉打痘痘
阅读(1248)
评论(0)
推荐(0)
pinia简单使用及持久化
摘要: 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 吃饭睡觉打痘痘
阅读(871)
评论(0)
推荐(1)
2022年2月28日
微信小程序接入百度统计
摘要: 百度移动统计 官网: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 吃饭睡觉打痘痘
阅读(328)
评论(0)
推荐(1)
2022年2月24日
vue项目使用百度统计记录(vue-ba)
摘要: 安装依赖 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 吃饭睡觉打痘痘
阅读(705)
评论(0)
推荐(1)
2022年2月23日
vue3中使用路由
摘要: import { useRouter, useRoute, ref } from 'vue-router'; const router = useRouter(); const route = useRoute() // 获取所有的路由 const routes = router.getRoutes
阅读全文
posted @ 2022-02-23 17:40 吃饭睡觉打痘痘
阅读(104)
评论(0)
推荐(1)
vue3 render函数
摘要: 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 吃饭睡觉打痘痘
阅读(1270)
评论(0)
推荐(1)
下一页
公告
点击右上角即可分享