- 博客(11)
- 收藏
- 关注
原创 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
943
原创 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
1101
原创 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
207
原创 前端唤起浏览器打印
<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
700
原创 唐顿庄园 学英语3
don’t blame mewhy meit’s all your faultaren’t you ashamed of yourselfwhy are you picking on mefind fault withlay eyes on 第一次见到频率依次递减alwaysusurallyfrequentlysometimesoccasionallyrarelyseldomhardly everneverin that regard 在那方面…on the altar
2020-08-17 15:01:02
139
原创 唐顿庄园 学英语2
card paymentmobile paymentQR code paymentcash machine 取款机bank transfere-bankingonline bankinggift card 代金卡chequeblank cheque 空白支票be found wanting 被发现不够分量,被发现不合格as dull as paint 非常无聊as cold as iceas bright as light..
2020-08-17 14:42:02
167
原创 看《唐顿庄园》学英语1
first class 头等舱poor devils 可怜的人dine widthThe + 姓氏 + s 表示一家人的用法be bound to be …肯定,必然be supposed to 应该what a tragedy
2020-08-17 14:00:41
196
原创 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
374
原创 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
469
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人