- 博客(12)
- 收藏
- 关注
原创 js判断字符串是否全为空格
if(conImgstr.match(/^\s+$/)){ console.log('全为空') } conImgstr为变量
2021-03-29 15:03:36
2508
原创 echarts一个图表多个x轴,删除一个x轴数据更新x轴还在
Echarts.setOption(option,true); option默认是合并,加了true就可以防止合并
2021-03-19 16:20:10
507
原创 微信小程序,更改标题时间电量退出字体颜色
onLoad: function (options) { wx.setNavigationBarColor({ frontColor: '#000000', backgroundColor: '#000000' }) },
2021-02-26 17:15:56
460
原创 vue实现图片拖动、放大、旋转
vue实现图片拖动、放大、旋转解决图片不能鼠标长按时移动 解决图片不能鼠标长按时移动 html代码 <div class="Imgdata" id="test_3"> <img draggable="true" class="testpaperImg" @mousedown="start($event)" @mouseup="stop($event)" @mousemove="move($event)" :style="style" src="img路径" alt="">
2021-01-13 10:31:44
4052
6
原创 前端使用js启动一个node,兼容谷歌
我这边是web端点击按钮或者图标来启动电脑中的exe 1·首先得写一个注册表,作用是window全局注册个方法,具体我也不懂 首先创建一个reg文件,说白就是txt后缀改为reg就好作用为启动cmd Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\openupload] @="URL:openupload Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\openupload\DefaultIco
2020-07-24 15:48:38
317
原创 谷歌可编辑页面文本内容
document.body.contentEditable='true'; 谷歌浏览器控制台输入以上代码回车,页面文本内容即可编辑。
2020-06-28 16:06:51
592
原创 原生axios使用,或调用axios报错问题
vue cli4,其他版本脚手架也可以使用的原生axios 调用post请求控制台报错Access to XMLHttpRequest at ‘http://1xxxxxx/license/public/admin/order/login’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control
2020-05-12 15:48:56
1349
原创 vue中浏览器下载后端返回的excel模板
在封装的get post 请求中 重新封装一个post请求(也可为get请求) const httpUrl = _config.apiOptions["SSO-APP"];//httpurl为vue封装的ip地址 commonDownload(url,data){ return request({ url: `${httpUrl}${url}`,//url为后端接口 ...
2020-04-01 16:14:33
596
2
原创 Git clone 时报错问题
#Git 克隆项目报错 error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed 出现可能是大小限制问题 git config http...
2020-03-11 14:23:58
314
原创 IE浏览器中将2019-12-25T06:58:33.000+0000转换为时间格式
将2019-12-25T06:58:33.000+0000格式转换为YYYY-MM-DD HH:mm:ss格式 此方法兼容IE npm install moment --save//下载个moment 在当前vue文件引用他 import moment from 'moment' 获取到当前的时间 date为获取到的时间 let time =moment(date).format('YYYY-...
2020-01-22 15:12:44
1210
1
原创 Vue设置长时间未操作登录以后自动到期返回登录页
网上资源可能有很多我在这里做个总结 首先我们写在main.js文件中 import routerUtil from "@/utils/routerutil";//先将js文件在main.js中引入 routerUtil(router); 我们会在登陆成功后调用sessionUtil文件中的setSession,sessionUtil下面写的有 import sessionUtil from '...
2020-01-21 18:05:52
3285
4
原创 兼容IE浏览器下对比两个时间大小
IE浏览器下对比两个时间大小 由于IE中new Date 存在兼容问题所以new Date .getTime 无法使用 timeInitialize(){//时间改变时触发 if(this.startTime && this.endTime){//判断两个时间是否输入 var dateTime = this.strToD...
2020-01-21 10:06:29
2158
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人