前端学习笔记
刘小琳
这个作者很懒,什么都没留下…
展开
-
移动端怎样解决弹窗后滑动穿透的问题
移动端滑动穿透原创 2022-07-15 16:08:51 · 674 阅读 · 0 评论 -
vue3 为项目增加plop-templates
官网https://plopjs.com/documentation/#installation安装npm install --save-dev plop项目根目录创建plopfile.js,module.exports = function (plop) { // create your generators here plop.setGenerator('basics', { description: 'this is a skeleton plopfil..原创 2022-03-18 16:51:54 · 953 阅读 · 0 评论 -
uniapp 基座唤起微信小程序
相关api launchMiniProgram// #ifdef APP-PLUSplus.share.getServices( function(res) { var sweixin = null; for (var i = 0; i < res.length; i++) { var t = res[i]; if (t.id == 'weixin') { sweixin = t; } } if (sweixin) { sweixin.launch原创 2021-11-10 13:48:49 · 1112 阅读 · 0 评论 -
html转图片并下载
download = src => { html2canvas(document.getElementById('receipt')).then(canvas => { const dataURL = canvas.toDataURL('image/png'); const anchor = document.createElement('a'); if ('download' in anchor) { anchor.style.vis原创 2021-11-02 15:09:55 · 211 阅读 · 0 评论 -
前端唤起浏览器打印
<div ref={el => { this.state.printRef = el }} id="receipt" style={{ width: '595px', height: '600px' }}> <img src={`/msreshop${(uploadUrl || '').split('msreshop')[1]}`}alt="" style={{ width: '100%', marginTop: '30%' }}/></div>pri原创 2021-11-02 15:08:46 · 702 阅读 · 0 评论 -
svg知识点
近日在工作中遇到一个实现工作流的需求,考虑采用anyv G6 来实现官网 https://antv-g6.gitee.io/zh/examples/gallery语雀 https://www.yuque.com/antv/g6/qopkkg在这里主要记录一下之前没有注意到的一些问题1、svg的path在官网中总是会看到这样的写法一直不是很明白M/L/Z这些都代表了什么,它还有什么别的值没有,这次我终于搞懂了M:move toL: line toH: horizontal lineto 沿原创 2020-08-12 10:44:51 · 381 阅读 · 0 评论 -
vue3.0-----setUp
vue3.0学习(二)生命周期的改变data() 变为 setUp()生命周期的改变beforeDestory ⇒ beforeUnmountdestory ⇒ unmounted新增renderTracked:虚拟DOM渲染跟踪的钩子renderTriggered:虚拟DOM改变被触发之后data() 变为 setUp()1、生命周期的函数只能写在setUp中2、provide/inject 只能写在setUp...原创 2020-08-06 17:15:18 · 474 阅读 · 0 评论 -
vue3.0 ------ createApp()
vue3.0改了什么原创 2020-08-06 16:08:22 · 39635 阅读 · 19 评论