2022年4月21日
摘要: import { useRouter } from 'vue-router' setup(){ const router = useRouter() router.push('/corporateTransfer') } 阅读全文
posted @ 2022-04-21 15:14 94汪 阅读(133) 评论(0) 推荐(1)
  2022年4月20日
摘要: 参考 https://www.ruanyifeng.com/blog/2021/01/clipboard-api.html 使用了 navigator.clipboard api,这个api的使用 要在本地的http://localhost/ 环境,或者https 上面才能使用 使用的是blob 流 阅读全文
posted @ 2022-04-20 18:20 94汪 阅读(62) 评论(0) 推荐(0)
摘要: 1. npm install -d qrcode 2. 在页面中导入 import QRCode from "qrcode"; 3. 页面html 结构 <canvas id="QRCode_header" > </canvas> 4.页面api 的使用 let opts = { errorCorr 阅读全文
posted @ 2022-04-20 14:15 94汪 阅读(289) 评论(0) 推荐(0)
  2022年4月18日
摘要: ios 在一些低版本中 在vue的 tab 栏上面,多次点击,会出现页面顶上去,导航栏会被遮住 用 document.activeElement.scrollIntoViewIfNeeded(); // 让当前的元素滚动到浏览器窗口的可视区域内 document.documentElement.sc 阅读全文
posted @ 2022-04-18 10:35 94汪 阅读(81) 评论(0) 推荐(0)
  2022年4月8日
摘要: 1.定义参数 import { ref, reactive } from "vue"; let count = ref({ a: 112123, b: 666 }); let state = reactive({ data: 123456, b: [1, 2, 3, 4, 5, { a: 1, b: 阅读全文
posted @ 2022-04-08 14:27 94汪 阅读(82) 评论(0) 推荐(0)
摘要: 1. 下载 npm install -s postcss-plugin-px2rem 2.在根文件夹中创建 .postcssrc.js module.exports = { "plugins": { "postcss-plugin-px2rem": { rootValue: 100, } } } 3 阅读全文
posted @ 2022-04-08 14:08 94汪 阅读(1337) 评论(0) 推荐(0)
  2022年3月31日
摘要: 两行省略号 text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -web 阅读全文
posted @ 2022-03-31 14:15 94汪 阅读(25) 评论(0) 推荐(0)
摘要: -D 是是在开发环境中协助开发需要使用的 -S 是生产环境打包时需要的 在package.json 中 -D在devDependencies对象中,-S在dependencies对象中 比如 axios , vue , vue-router -s 都是生产环境的,这些文件到了线上也要使用 比如 le 阅读全文
posted @ 2022-03-31 14:08 94汪 阅读(32) 评论(0) 推荐(0)
  2021年11月11日
摘要: 估计是百度更新了 公共js,修改了其中为API,在示例代码上面没有修改过来, 将 BMapGL 修改成 BMap 就行了 阅读全文
posted @ 2021-11-11 10:31 94汪 阅读(6590) 评论(0) 推荐(1)
  2021年9月28日
摘要: 1. 关于主屏幕显示问题 ,问题2 ,样式兼容问题, iphone 官网都做了 支持 主要用 官方的api, 一 、主屏幕显示问题 1、显示全屏 使用 ihpone 专用的api <meta name="apple-touch-fullscreen" content="yes">:"添加到主屏幕“后 阅读全文
posted @ 2021-09-28 12:02 94汪 阅读(966) 评论(0) 推荐(0)