- 博客(21)
- 收藏
- 关注
原创 websocket本地正常,部署到服务器连不上
线上连接错误解决方法:1.开放服务器端口2.用IP地址加端口连接websocket = new WebSocket(`ws://119.23.41.159:9985/api/bigdata`)
2022-02-14 10:43:40
6445
2
原创 java 通用方法封装
//获取时间差天数 private static int getDatePoor(Date endDate, Date nowDate) { Calendar cal = Calendar.getInstance(); cal.setTime(endDate); long time1 = cal.getTimeInMillis(); cal.setTime(nowDate); long time2 = cal.getTi
2021-02-01 14:01:33
305
原创 Google地图开发
https://www.cnblogs.com/yincheng/p/google-map.htmlhttps://www.it1352.com/824678.html
2020-12-18 09:25:00
156
原创 v-html限制图片宽度
onShow() { const regex = new RegExp('<img', 'gi'); this.proContent= this.proContent.replace(regex, `<img style="max-width: 100%;"`);},
2020-12-08 10:31:40
1533
原创 Vue实现搜索关键字高亮显示
过滤的方法ruleTitle(titleString) { if (!titleString) { return ''; } if (this.searchName && this.searchName.length > 0) { // 匹配关键字正则 let replaceReg = new RegExp(this.searchName, 'g'); // 高亮替换v-html值 let replaceString = '<
2020-11-03 16:18:15
633
原创 vue实现关键词过滤-二级列表
搜索按钮search方法organizationList :人员列表searchMethod(list, val) { return list.filter(value2 => { return value2.name.match(val) })},search(e){ this.organizationList = this.organizationList.filter((value, index) => { if(this.searchMethod(value.us.
2020-11-02 18:13:57
441
原创 uniapp相册选择页国际化问题
目前官方给的uni.chooseImage()只能识别中文和英文plus.gallery.pick(res=>{ let images = [] images.push(res) that.$emit('chooseResult',images)},(err)=>{ that.$emit('chooseResult','cancel')},{ maximum: 1, multiple: false, filter:"image"});Gallery模块管理系统相册官方网
2020-09-30 11:24:54
844
原创 前端JS日期格式转换
日期格式转换 转换成 2020-09-01 12:00:00function time(time = +new Date()) { console.log(time) var date = new Date(time + 8 * 3600 * 1000); // 增加8小时 return date.toJSON().substr(0, 19).replace('T', ' ');}console.log(time(+new Date("2014-10-01 12
2020-09-04 11:30:04
1099
原创 uniapp实现六个格子输入框
<template> <view class="content"> <view class="pc_in"> <view class="pc_on"> <span class="g_hx"></span> <span class="g_hx"></span> <span class="g_hx"></span>
2020-08-03 17:16:23
2288
原创 最新版uni-app下input组件的focus属性的坑
<input focus type="text" />直接在input上写focus无效需要像下面这样用一个动态值来设置<input :focus="focus" type="text" />在移动端还有一个bug,就是键盘弹出瞬间又收起了需要延迟设置focus值mounted(){ setTimeout(() => { this.focus = this.isFocus }, 100) },...
2020-07-09 18:27:39
10176
原创 Cannot execute request on any known server
修改配置register-with-eureka: falsefetch-registry: false
2020-07-02 11:03:55
112
原创 Vue的几种展开收缩动画
一、 //需要动画的内容.router-slid-enter-active, .router-slid-leave-active {transition: all .4s;}.router-slid-enter, .router-slid-leave-active {transform: translate3d(0, 3rem, 0);opacity: 0;}二、创建ShrinkView.vue组件在其它页面引入该组件...
2020-06-23 21:04:56
2888
原创 react-router嵌套路由页面无法显示
在index.js配置一级路由在admin.js中配置二级路由会发现二级路由无法访问,是个空白页解决方法一级路由中 Admin路由里的exact属性要删掉
2020-05-31 21:43:19
3372
1
原创 SpringMVC报错:No converter found for return value of type
pom.xml添加依赖com.fasterxml.jackson.corejackson-databind2.9.5com.fasterxml.jackson.corejackson-annotations2.9.5springmvc.xml添加配置mvc:annotation-drivenmvc:message-converters</mvc:message-converters></mvc:annotation-driven>...
2020-05-09 10:00:56
191
原创 Failed to configure a DataSource: 'url' attribute is not specified and no embedded
在 SpringBoot 应用程序启动时,排除 jdbc 的自动装配机制即可,在程序入口文件中新增配置注解 “ exclude=DataSourceAutoConfiguration.class ” ,如下图:
2020-04-22 17:50:13
113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人