- 博客(8)
- 收藏
- 关注
原创 在vue中使用svg
第一种方式 svg-sprite-loader的一种方式 在vue项目中使用svg 第二种 vue-svg-icon-loader npm install --save-dev vue-svg-icon-loader npm install vue-svg-component-runtime 去配置vue.config.js const path = require('path') function resolve (dir) { return path.join(__dirname, './', d
2021-01-08 16:33:28
966
原创 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
153
原创 前端文件下载
首先在发请求的时候就需要加一个参数 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
107
原创 在地图中使用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
841
1
原创 C3(二)
3d translateX(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
183
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
119
原创 H5学习
自定义属性 data- 1.至少有一个字符 都小写 2.不要特殊符号 3.不要使用纯数字 .dataset[""]取值要使用camel命名法 .data[""] 接口 网络接口 ononline onoffline 全屏接口 1.requestFullScreen(); 全屏 2.cancelFullScreen(); 退出全屏 退出全屏要用document来实现 3.fullScreenEl...
2019-11-21 18:22:02
234
原创 H5学习
H5学习 语义标签 <body> <header>头部区域</header> <section> <article>侧边栏内容</article> <aside>内容之外的内容</aside> </section> <fo...
2019-11-20 18:13:52
173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人