- 博客(38)
- 收藏
- 关注
原创 Could not create directory ‘/home/username/.ssh’
报错如下一番百度后 以下操作均无效HOME环境变量设置ssh-keygen 重新生成 rsagit重装解决方案目录 C:\Program Files\Git添加home/username/.ssh目录ssh-keygen //这一步报了权限错误 用管理员身份进行操作Saving key "/home/username/.ssh/id_rsa" failed: Permission denied更新rsa文件项目目录下 git pull 成功...
2020-06-10 14:22:47
2646
3
原创 html2canvas实现html截图功能
js动态地将html生成图片,手机端长按保存到本地https://blog.csdn.net/weixin_34727238/article/details/89498847html2canvas实现页面截图功能https://blog.csdn.net/youcijibi/article/details/81778142...
2020-03-12 15:59:31
482
原创 node读取文件 并修改文件内容
https://blog.csdn.net/weixin_38888773/article/details/84836596
2019-10-18 18:50:37
1199
转载 node.js async/await 处理异常?
一、我只是console一下,我不处理。async function getData(){ const a = await someFunction().catch((error)=>console.log(error)); const b = await someOtherFunction().catch((error)=>console.log(error)); if...
2019-07-11 16:07:39
1119
转载 如何在Mac上使用Time Machine。备份和恢复数据
https://www.cleverfiles.com/help/zh/time-machine-mac-backup.html
2019-05-17 09:39:41
4174
转载 vue $http的get和post请求跨域问题解决
vue $http的get和post请求跨域问题解决https://blog.csdn.net/weixin_38070406/article/details/81294812Vue Nginx反向代理配置 解决生产环境跨域https://blog.csdn.net/SEAYEHIN/article/details/83479032...
2019-04-11 13:42:56
2611
转载 改造vue-quill-editor:实现图片上传到服务器再插入富文本
https://github.com/NextBoy/skill/issues/2
2019-04-08 18:27:40
362
原创 搭建node节点 从零开始
创建一个支持ES6的Nodejs项目https://www.cnblogs.com/weschen/p/7154284.html创建package.jsonnpm init -y安装expressnpm install --save express创建index.js(node入口文件,注意要用ES5语句)package.json添加start执行语句"scripts": {...
2019-03-22 17:07:55
606
原创 npm编译报错
1、删除node_modules这个文件夹2、切换到工程目录3、清空缓存:cnpm cache clean4、重新安装(依赖包):cnpm install5、重新build(js文件):cnpm run build5、重新运行,cnpm run dev,启动成功...
2019-03-07 10:33:01
820
转载 axios POST提交数据的三种请求方式写法
https://segmentfault.com/a/11900000152612291、Content-Type: application/jsonimport axios from 'axios'let data = {"code":"1234","name":"yyyy"};axios.post(`${this.$url}/test/testRequest`,data).then(...
2019-03-05 13:59:14
2541
转载 JS判断元素是否在数组内
一、JQuery如果是用JQuery的话,可以用inArray()函数:jquery inarray()函数详解jquery.inarray(value,array)确定第一个参数在数组中的位置(如果没有找到则返回 -1 )。determine the index of the first parameter in the array (-1 if not found).返回值jqu...
2019-02-22 11:14:41
777
原创 关于canvas画图
canvas画图:用鼠标—画曲线,直线,矩形,圆http://blog.csdn.net/qq_31164127/article/details/72929871html5 canvas自定义绘制多边图形代码http://www.17sucai.com/pins/19365.htmlCanvas 中如何获取自定义图形的边界坐标集合https://segmentfault.com/q/101...
2019-02-22 11:08:30
221
转载 Xshell无法启动:要继续使用此程序,您必须应用最新的更新或使用新版本
nslicense.dll 文件下载:https://anonfiles.com/S7o5I7o2b1/nslicense_dllhttps://pan.baidu.com/s/1M81AAfpSbh9mvFbmW5zsRg下载后直接放到Xshell 安装目录即可~~查毒链接:http://r.virscan.org/language/zh-cn/report/a1f7e35bbfbb1f...
2019-02-21 10:03:57
260
原创 webpack打包vue项目ie浏览器下报promise 未定义 部分安卓机器空白
安装:npm install --save babel-polyfill你需要在你的应用入口顶部通过 require 将 polyfill 引入进来,确保它在任何其他代码/依赖声明之前被调用。require("babel-polyfill");在main.js入口函数引入import "babel-polyfill";1方式3: 在 webpack.config.js 中,将 ...
2019-02-01 15:59:30
255
原创 vue -- webpack打包体积大导致网站加载速度慢的解决方案
参考:https://www.jeffjade.com/2017/08/06/124-webpack-packge-optimization-for-volume/首先,在写 Vue 的时候,应该采用懒加载模式,之后生成的包,就会被打入到不同分组的 js,运行时按需加载,详情见:Vue-路由懒加载;这个意义重大!const GetTrx = () => import('@/pages/s...
2019-01-29 15:55:30
1284
原创 使用vue H5与App交互
onClick="window.handleTrunTo()"mounted () { //接收app通知 window.typeAndAddressNative = this.typeAndAddressNative; var url = this.data.url; var title = this.data.title; var data = ...
2019-01-19 15:12:47
1421
原创 iview upload
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
2019-01-11 16:28:41
484
原创 vue-awesome-swiper使用
&amp;lt;template&amp;gt; &amp;lt;div class=&quot;carousel-swiper&quot;&amp;gt; &amp;lt;!-- swiper --&amp;gt; &amp;lt;swiper :options=&quot;swiperOption&a
2018-12-27 15:39:43
348
原创 iframe内嵌网页踩坑合集
iOS的iframe宽度bugiOS下的safari是按照iframe里面页面元素的全尺寸来调整iframe的大小的。轮播效果的实现原理是将所有的幻灯片都放到一个块里面,然后设置溢出隐藏,在iOS的iframe下,结合上面第一条原因,就会将iframe撑得很大。在iframe上设置以下样式iframe { width: 1px; min-width: 100%; *width:...
2018-12-26 20:25:13
3386
转载 详解vue使用vue-layer-mobile组件实现toast,loading效果
https://www.jb51.net/article/146604.htm
2018-12-21 18:20:23
660
转载 JS 点击复制Copy
https://www.cnblogs.com/tylerdonet/p/4533782.html1.实现点击按钮,复制文本框中的的内容&lt;textarea cols="20" rows="10" id="biao1"&gt;用户定义的代码区域&lt;/textarea&gt;&lt;input type=
2018-12-04 15:09:25
3054
原创 CSS样式合集
英文两边对齐p { font-size: 13px; text-indent: 2em; padding: 5px 0; display: block; text-align:justify; text-justify:inter-ideograph}纯色背景透明.bg{ background-color:rgba(255,255,255,0.5)}在比较现代的浏览器...
2018-12-04 15:04:12
114
转载 Vue中实现文字向上滚动的动画效果
https://blog.csdn.net/duola8789/article/details/80833362
2018-11-28 14:15:57
1816
原创 vue项目中如何使用动画效果
&amp;amp;lt;div class=&amp;quot;video-item&amp;quot;&amp;amp;gt; &amp;amp;lt;div class=&amp;quot;video-img&amp;quot;&amp;amp;gt; &amp;amp;lt;img src=&amp;quot;../..
2018-11-23 16:13:53
974
转载 ES6 Promise 用法讲解
https://www.cnblogs.com/whybxy/p/7645578.htmlhttps://blog.csdn.net/MrJavaweb/article/details/79475949https://www.imooc.com/article/23838https://www.jianshu.com/p/c613c0198430
2018-11-22 09:26:59
120
转载 网站引入字体文件
&amp;lt;style type=&quot;text/css&quot;&amp;gt;@font-face { font-family: &quot;YourFont&quot;; src: url(http://www.yoursite.com/siyuanfont.otf);}span.customfont { font-family: &q
2018-09-22 17:31:17
876
转载 Html5的video标签自动填充满父div的大小
想要video能自动填充慢父div的大小,只要给video标签加上style="width= 100%; height=100%; object-fit: fill"即可。object-fit语法object-fit属性的语法非常的简单:object-fit:fill | contain | cover | none | scale-downobject-fit取值说明object-f...
2018-09-19 15:55:23
2617
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人