![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
pig-qr
前端小白
展开
-
在vue中使用svg
第一种方式svg-sprite-loader的一种方式在vue项目中使用svg第二种vue-svg-icon-loadernpm install --save-dev vue-svg-icon-loadernpm install vue-svg-component-runtime去配置vue.config.jsconst path = require('path')function resolve (dir) { return path.join(__dirname, './', d原创 2021-01-08 16:33:28 · 984 阅读 · 0 评论 -
vscode-settings
{ "editor.formatOnPaste": false, "editor.multiCursorModifier": "ctrlCmd", "editor.snippetSuggestions": "top", "explorer.confirmDelete": false, "[javascript]": { "editor.defaultFormatter": "vscode.typescript-language-features"原创 2021-01-05 17:35:23 · 156 阅读 · 0 评论 -
前端文件下载
首先在发请求的时候就需要加一个参数 this.axios({url:'url',responseType: 'blob'}).then(res=>{ this.downloadFile(res, '导出.zip') })下载固定的方法downloadFile( file, fileName, fileType = "application/octet-stream;charset=UTF-8" ) { if (!file) ret原创 2020-11-27 14:18:03 · 108 阅读 · 0 评论 -
在地图中使用html2canvas完成对应位置的部分截屏
在地图中使用html2canvas完成对应位置的部分截屏<div id='nodeBox' class="content-body"></div>//引入html2canvas setImage () { let that = this; var canvas2 = document.createElement("canvas"); let _canvas = documen原创 2020-11-27 11:03:07 · 847 阅读 · 1 评论 -
C3(二)
3dtranslateX(length),translateY(length), translateZ(length)scaleX(),scaleY(),scaleZ()3D旋转rotate3d(x,y,z,angle):指定需要进行旋转的坐标轴立方体<!DOCTYPE html><html lang="en"><head> <meta ...原创 2019-11-26 14:18:01 · 184 阅读 · 1 评论 -
C3(一)
选择器属性选择器E[attr]查找拥有attr属性的E标签E[attr=value]查找attr属性而且属性值相等的E标签E[attr*=value]查找attr属性里面包含value的任意位置E[attr^=value]查找attr属性里包含value的开始位置E[attr$=value]查找attr属性里包含value的结束位置伪类选择器1.a:hover a:link a:a...原创 2019-11-24 18:16:59 · 121 阅读 · 0 评论 -
H5学习
自定义属性data-1.至少有一个字符 都小写2.不要特殊符号3.不要使用纯数字.dataset[""]取值要使用camel命名法.data[""]接口网络接口ononlineonoffline全屏接口1.requestFullScreen(); 全屏2.cancelFullScreen(); 退出全屏 退出全屏要用document来实现3.fullScreenEl...原创 2019-11-21 18:22:02 · 237 阅读 · 0 评论 -
H5学习
H5学习语义标签<body> <header>头部区域</header> <section> <article>侧边栏内容</article> <aside>内容之外的内容</aside> </section> <fo...原创 2019-11-20 18:13:52 · 177 阅读 · 0 评论