- 博客(16)
- 收藏
- 关注
原创 js匹配 yyyy-mm-dd hh:mm:ss的正则表达式 以及数据按照有序排序
var titleArr = new Array(); for(var j in deviceDataEnd[0]){ var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/; var r = j.match(reg); if(r!=null){ ..
2021-07-01 17:34:45 573 1
原创 css去掉右侧导航栏
html {position: absolute;overflow-x: hidden;overflow-y: hidden;}
2021-05-12 13:50:26 439
原创 HTML中checkbox属性的勾选、不勾选、获取多个复选框的value值
1.勾选 $(checkBoxEle[j]).prop("checked",true);2.不勾选 $(checkBoxEle[j]).removeAttr('checked');3.获取多个复选框的value值var receiveContents = $("input[name='checkboxReceive']:checked").map(function () { return $(this).val(); }).get().join(','); ...
2021-04-23 14:10:29 1451
原创 echarts清空属性和数据
alarmStatisticsEcharts.echarts.clear();//清空echarts属性及数据alarmStatisticsEcharts 添加属性和数据
2021-04-20 11:23:00 2705
原创 js操作
js去除字符串拼接的最后一个逗号content= content.substring(0, jobnumber.lastIndexOf(','));js按照换行符分隔字符串var contentsplit = content.split(/\r?\n/);3.easyui在js中给表格赋值,分为两种情况,有数据 无数据 if (item.total > 0) { $("#content").datagr.
2021-03-09 13:24:26 61
原创 递归算法
package com.test.demo;import java.util.Scanner;public class test { public static void main(String[] args){ //递归的算法求1,1,2,3,5,8.......的第30位数是多少,然后求这些数的和. Scanner scanner=new Scanner(System.in); int n=scanner.nextInt();
2021-02-19 18:07:22 50
原创 html5选择年月日 年月日时分 年月日时分秒
canlendar.html<html> <he <title>$Title$</title> </head> <body> <!-- 选择年月日 时分--> <input name="birthday" type="datetime-local" id="birthday" > <!-- 选择年月日--> <input name="birthda
2021-02-15 20:06:12 2236 1
原创 选择日期
calendar.html<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <input name="birthday" type="text" id="birthday" title="点击选择" onClick="javascript:ShowCalendar(thi
2021-02-15 19:44:03 91
原创 js按照特定的中文顺序进行排序以及去重操作
var order=['单选题','多选题','判断题','填空题','简答题']; hash = hash.sort(function compareFunction(item1, item2) { return order.indexOf(item1)- order.indexOf(item2); });
2021-02-07 22:08:47 227
原创 EasyUI设置默认日期
1.初始化方法: $.page.private_function.init("Calculation");设置默认日期 init: function (dateObj) { //设置前当月if (dateObj == "Calculation" ) $('#' + dateObj).datebox("setValue", $.page.private_function.myformat(curr_time)); $(".calendar-menu-year")...
2021-02-07 17:04:18 529
原创 thymeleaf接收后台session传递的值
1.后台存入session的值 session.setAttribute("student",对象名/某个值);1.form表单<form th:action="@{/teacher/page(phone=${session.student.getPhone()})}" method="post" ></form>2.span标签<span style="display: none;" th:text="${session.student.getPhone()}
2021-02-05 22:51:41 656
原创 js拆分字符串
window.location.href="/student/test?tid="+tid; var url=location.href; url=decodeURI(url); // alert(url); var str=url.split("?"); // alert(str); var str1=str[1]; var tr1=str1.split("="); var tid=tr1[1];2.window.location.h.
2021-02-05 22:13:52 114
原创 Js去除字符串中的空格 tab符 亲测有效
问题描述:1.去除字符串中的tab键$('#ID号').val().replace(/\t/g, '');2.去除字符串中的空格$('#ID号').val().replace(/\s/g, '');
2021-02-05 15:52:07 2823
原创 Unable to convert MySQL date/time value to System.DateTime
Unable to convert MySQL date/time value to System.DateTime小编最近遇到了一个这样的问题,原因是因为数据库中有"0000-00-00"这样的日期型数据.原来我是这样写的DATE_FORMAT(字段名,’%Y-%m-%d’) as 字段名";改正后DATE_FORMAT(IF(字段名=‘0000-00-00’,’’,字段名), ‘%Y-%m-%d’) as 字段名";这样小编的问题就解决了,希望能帮到你们....
2021-02-04 17:26:26 99
原创 css EasyUI的设置
一、css样式设置隐藏 显示1.隐藏$("#Id号").css(“display”, “none”);2.显示$("#Id号").css(“display”, “block”);二、EasyUI 设置select下拉框不可选 可选 下拉框的值1.不可选$(’#Id号’).combobox(‘disable’);2.可选$(’#Id号’).combobox(‘enable’);3.给下拉框赋值$("#Id号").combobox(“setValue”, “123”);...
2021-02-04 17:15:27 426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人