自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 收藏
  • 关注

原创 vue+element input输入框输入,下方内容实时预览

input输入框输入,下方内容实时预览,并且替换内容中的占位符。

2023-04-27 14:40:21 901

原创 找到数组内重复字符串去重

找到数组内重复字符串去重

2022-06-10 09:43:26 260

原创 【d3.js】使用d3.js绘制聚类图

测试数据:node是节点,link_list是连线

2022-06-08 10:38:32 534

原创 neo4j 导入csv时根据逗号切割字符串

LOAD CSV WITH HEADERS FROM "file:///测试.csv" AS rowWITH row.`name` AS ListUNWIND SPLIT(List,",") AS nameListreturn nameListcsv表格查询结果

2022-04-01 10:36:32 264

原创 pgsql查找没有分区的表名

SELECT tablename FROM pg_tables T inner JOIN pg_class C on T.tablename = C.relname WHERE T.schemaname = ‘名称’ and C.relispartition = ‘f’;

2022-03-01 11:31:45 554

原创 (vue+echarts)堆叠图显示百分之多少

<template> <div> <div id="textEcharts" style="width:100%;height: 295px;"></div> </div></template><script>export default { name: 'textEcharts', data() { return { dataItem:[ { .

2021-08-26 15:29:27 390

原创 (vue+element ui)表格展开行,点击只展开一行

页面表格:<el-table :data="tableData5" stripe :row-key='getRowKeys' @expand-change="expandSelect" :expand-row-keys="expands" @row-click="rowClick" @selection-change="handleSelectionChange

2021-08-12 14:26:15 1166

原创 (vue+echarts)柱状图获取数据后按降序排列

<template> <!-- 柱状图按降序排列,写了假数据,可复制直接跑--> <div> <div class="e-title"> <div id="nationwideProvince" style="width:100%;height:295px" ></div> </div></template><script>expo

2021-08-12 10:55:34 3361

原创 echarts堆叠图显示百分比

获取到数据后,将tooltip中的formatter修改tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' }, formatter: function(params) {//这里就是控制显示的样式 let relVal = params[0].name; let value = 0; for (let i = 0, l = params.length

2021-07-07 13:57:13 1778

原创 微信小程序view并列

<view class="box"> <view class="box1"></view> <view class="box2"></view></view>.box{ display:flex; flex-direction:row; justify-content:flex-start;}.box1{ width:100%; height:100%}

2021-04-27 09:48:58 3523

原创 vue+element批量删除

按钮 <el-button @click="removeAllSelection()" icon="el-icon-delete" type="danger" size="mini">批量删除</el-button>表格@selection-change=“handleSelectionChange”获取选中行的信息<el-table :data="tableData" class="ops-object-table" stripe border size="min

2021-04-09 14:34:13 831 1

原创 echarts相关

window.onresize = function(){myChart.resize();//myChart1.resize(); //若有多个图表变动,可多写}

2021-03-30 15:12:45 83

原创 实时监听输入框,当输入框内无值的时候,按钮无效

按钮:<button type="button" class="btn btnComment" id="btnComment" disabled >提交</button>js代码// 实时监听输入框的变化$("#comment").on('input propertychange',function(){ if($(this).val() !== "" && $(this).val().replace(/(^\s*)|(\s*$)/g, "")

2020-11-16 16:43:15 818

原创 thymeleaf的each标签遍历

each标签遍历:<div th:each="user,userStat:${users.userList}" ></div>获取数组所有:index(索引)获取数组长度:size(长度)

2020-11-02 11:23:41 958

原创 截取多个双引号中的关键字并高亮显示

let mesg = "test1:“11111”,test2:“22222”,test";let str = mesg.replace(/\“/g, '<span style="color: #519aff">" ');str = str.replace(/\”/g, ' "</span>');let temp = `:${str}`;return temp;结果:

2020-10-22 16:33:25 257 1

原创 thymeleaf无法静态化页面,无法显示静态文件和样式

错误代码:org.thymeleaf.exceptions.TemplateProcessingException: Link base "/img/logo.png" cannot be context relative (/...) unless the context used for executing the engine implements the org.thymeleaf.context.IWebContext interface (template: "common/head" - l

2020-10-12 15:49:22 1536

原创 解决yapi chrome插件cross-request无法使用问题

问题:解决方法:下载插件源码git clone https://github.com/YMFE/cross-request加载扩展程序时选择源码文件夹地址

2020-07-31 17:36:47 2255

原创 开发多客户端网页,ios和浏览器显示Date转成的dateString,会出现NaN字符

像new Date(‘2020-07-06 16:00:00’)或者new Date(‘2020-07-06T16:00:00.000+0000’),这种Date就会NaN字符**解决方案:**只有let date = new Date(‘2020-01-06T16:00:00’),这种date转成的字符串,在ios上显示才不会出现NaNdate = new Date(‘2020-07-06T16:00:00’) 转成字符串为’2020-07-06 16:00:00’,这个时间原则上来说是不对的,但是i

2020-07-07 10:45:54 257

原创 [Vue warn]: Invalid prop: type check failed for prop “percentage“.Expected Number with value 0.46, g

percentage里面的数据是number类型<el-progress v-if="e.totalCount > 0" style="width: 50%" :text-inside="true" :stroke-width="20":percentage="((e.fullMarksCount / e.totalCount*100).toFixed(2))"></el-progress>添加 parseFloat<el-progress v-if=".

2020-07-06 16:01:39 7693 2

转载 js cookie设置最大过期时间 Infinity

https://www.cnblogs.com/surfaces/p/5548999.html

2020-04-07 14:24:59 1025

原创 使用Java递归解所有压缩文件,包括压缩文件中的压缩文件

static public void extractFolder(String zipFile) throws ZipException, IOException { System.out.println(zipFile); int BUFFER = 2048; File file = new File(zipFile); ZipFile zip = new Zi...

2020-01-15 13:38:53 504

原创 SpringBoot报错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet...

2019-11-06 11:58:47 365

原创 SpringBoot报错The bean 'userDao', defined in null, could not be registered

***************************APPLICATION FAILED TO START***************************Description:The bean 'userDao', defined in null, could not be registered. A bean with that name has already been ...

2019-11-05 11:38:06 985

原创 Vue启动报错Use // eslint-disable-next-line to ignore the next line.

✘ http://eslint.org/docs/rules/quotes Strings must use singlequote src\components\home\AppIndex.vue:9:15 name: "Appindex" ^ ✘ http://eslint.org/docs/rules/indent ...

2019-11-04 15:13:40 1334

原创 redis学习笔记

RedisNoSQL:Not Only SQL 不仅仅是SQL,通常指的是非关系型的数据库。MySQL和Oracle都是属于关系型数据库。特点 关系型数据库存储介质 以文件的方式保存在硬盘中优点 数据是可以永久保存缺点 1)数据添加有校验的过程2)查询的速度比较慢3)DML的操作需要使用到事务以上这些限制会导致速度很慢非关系型数据库通常只是存储在内存中,服务器关闭数据可能会...

2019-10-31 16:45:42 83

原创 SpringBoot+vue多图片上传(url保存到数据库)和回显

application.properties里面写路径absoluteImgPath = E://Pictures/img/sonImgPath = img/service层@Value("${absoluteImgPath}") String absoluteImgPath; @Value("${sonImgPath}") String sonImgPath;...

2019-10-30 09:28:06 8001 8

原创 vue删除字符串的最后一个字符

这是一个图片组,从数据库读取的url,用逗号隔开let img = response.feedPicture;有三种方法删除最后一个字符逗号img = img.substring(0, img.length - 1);img = img.substring(0, img.length - 1);img= img.substring(0, img.lastIndexOf(’,’));...

2019-10-29 15:02:46 17236

原创 Vue学习笔记(在回调函数里面需要调用外部变量的时候)

回调函数里面需要调用外部变量,都不能直接用this,要在函数开始赋值self=this。在回调里面用self才能指向外部

2019-10-14 14:55:59 2170 1

原创 安卓打包报错'The platform "android" does not appear to be a valid cordova platform. It is missing API.js.

错误:Unable to load PlatformApi from platform. Error: Cannot find module 'properties-parser'Unhandled error. ('The platform "android" does not appear to be a valid cordova platform. It is missing API....

2019-10-12 17:02:14 2960

原创 Vue 计算属性缓存与method

计算属性的缓存:就是当页面重新渲染(不是刷新)的时候,计算属性不会变化,直接读取缓存使用,适合较大量的计算和改变频率较低的属性method:当页面重新渲染的时候(页面元素的data变化,页面就会重新渲染),都会重新调用method...

2019-10-11 16:33:45 157

原创 Android studio安装过程

**一:**开代理!!全局代理!!!如果不开代理之后的步骤全部GG,重装也会GG,因为无法访问谷歌,下载不了需要的东西,重装多少次都无法下载SDK**二:**从 https://developer.android.com/studio/?gclid=EAIaIQobChMI2ubD3fv05AIVSKmWCh0yEAiGEAAYASAAEgIdAfD_BwE 下载安装包注:在提示提示未安装...

2019-09-29 10:33:08 103

原创 vue 错误 TypeError: Cannot read property 'length' of undefined

前端的methods中明明可以输出length,但是就是报错,而且错误时有时无的原因:没有预先判断数组是否存在,需要先对数组进行非空验证,加上,!=undefined的判断条件...

2019-09-19 09:36:00 9032 1

转载 颈椎康复指南()

2019-09-10 14:09:41 159

原创 this inspection performs unresolved sql references check

手欠自己改了啥,alt + enter再改回去叭

2019-08-23 10:26:52 4726

原创 Docker常用命令整理

2019-08-12 09:37:19 75

原创 Linux文件与目录常用命令整理

查看目录内容 ls切换目录 cd创建和删除操作 touchrmmkdir拷贝和移动文件cpmv查看文件内容catmoregrep其他echo重定向 > 和 >>管道 |...

2019-08-12 09:28:00 60

原创 java导入excel时处理日期格式

在Excel中的日期格式,比如2009-12-24将其转化为数字格式时变成了40171,在用java处理的时候,读取的也将是40171。如果使用POI处理Excel中的日期类型的单元格时,如果仅仅是判断它是否为日期类型的话,最终会以NUMERIC类型来处理。正确的处理方法是先判断单元格的类型是否则NUMERIC类型,然后再判断单元格是否为日期格式,如果是的话,创建一个日期格式,再将单元格的内...

2019-08-02 14:04:19 1317

原创 在GitLab的Issues中添加图片

![ Image Text] (图片地址)图片需要从别的地方导入的

2019-07-30 17:18:45 2885

原创 npm报错

npm报错错误:ENOENT:没有这样的文件或目录,scandir'** / node_modules / node-sass / vendor'错误二:in ./src/pages/report-form/SubSceneIndicator60/config/Config.vueModule build failed: Error: Missing binding E:\xxxx\s...

2019-07-30 17:09:55 189

原创 Unable to locate appropriate constructor on class [.......]

Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [com.icreate.monitor.service.dto.LteIndicatorDTO]....

2019-07-30 17:07:39 763

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除