加载中
GlobalThis - btoa & atob - [我不知道的js对象]

btoa & atob 全称:binary to ASCII -> 二进制转ASCII 作用:binary string parse to base64 encode String // ucs-2 string to base64 encoded ascii function utoa(str) { return window....

2021/06/16 09:57
116
Vue-html2pdf Html 生成 pdf 【踩坑实记】

1. 背景 前端直接根据 html 生成 pdf, 减轻后端压力 2. 选择工具 vue-html2pdf 3. 坑点 **打印位置偏移hack 滚动条 X Y 轴 打印前需要置零** handleDownloadPDF() { let scrollTop = docume...

2021/04/09 11:29
7.4K
Vue height auto transition 实现方案1

css transition 无法作用到未设初始值或者为auto的属性,可以通过js动态获取height:auto的元素的值赋值父元素高度实现过渡效果 解决思路: 子元素高度随内容变化, 父元素高度设置初始值,随...

2021/03/18 00:03
1.4K
initVue - 源码笔记

1、源码断点入口 package.json (main & module) or webpack config resolve alias get entry file vue-cli init project runtime-compiler version entry node_modules/vue/dist/vue.esm.js...

js clipboardCopy

clipboardCopy (text) { // Use the Async Clipboard API when available. Requires a secure browsing // context (i.e. HTTPS) if (navigator.clipboard) { return navigator.clipboard.wr...

2020/11/13 10:40
51
csvLineSplit

CSVtoArray(text) { const re_valid = /^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'...

2020/09/23 16:18
76
vsvode snippet

命令行搜索 configuration user snippet "vue template": { "prefix": "vuem", "body": [ "", " ", "", "...

2020/08/17 15:08
220
Vs code extensions

Material Theme Vetur GitLens Prettrier Css Peek Eslint Path Intellisense Import Cost Auto import Code runner Code spell checker Highlight Matching Tag IntelliSense for CSS class...

vue 语音合成

1、百度语音 restAPI https 请求,在线语音合成免费 tex 必填 合成的文本,使用UTF-8编码。小于2048个中文字或者英文数字。(文本在百度服务器内转换为GBK后,长度必须小于4096字节) tok 必...

2018/12/18 16:09
2K
使用httpClient 调起https url接口

工作中遇到的具体问题,解决并以作收藏

CSS-移动端 base模板

与等比缩放js结合使用

JS初始化模板

(function(w){ //var PAGE_SIZE = 10; function UserInfo(){ var _this = this; this.init = function(){ this.bindEvent(); this.initPage(); }; } UserInfo.prototype = { bindEvent:funct...

CSS-PC reset模板

使用习惯,自己总结的

2018/05/08 18:11
499
LINUX 命令收藏

linux 常用命令,自己用到以作收藏

2018/04/18 10:30
61

没有更多内容

加载失败,请刷新页面

返回顶部
顶部