摘要:
年月日 String s = "2018-9-28"; Date dd = new Date(); Date ss = new Date(); try { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式 String 阅读全文
posted @ 2020-11-09 13:59
豪shr
阅读(124)
评论(0)
推荐(0)
摘要:
UPDATE tpl_md_site a,(SELECT MIN(id) AS id,site_code FROM tpl_md_site GROUP BY site_code HAVING COUNT(*)>1) b SET a.site_code = CONCAT(b.site_code,'_9 阅读全文
posted @ 2020-11-09 13:57
豪shr
阅读(667)
评论(0)
推荐(0)
摘要:
session sessionStorage.setItem("row",数据); var row_data_data1 = JSON.parse(sessionStorage.getItem("row")); cookie $.cookie("trucksPlanPrint",JSON.strin 阅读全文
posted @ 2020-11-09 13:55
豪shr
阅读(166)
评论(0)
推荐(0)
摘要:
一个页面通过路径跳转到另一个页面,可以在路径后面拼接参数。到另一个页面后再取出来。 function getURLParameter(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|# 阅读全文
posted @ 2020-11-09 13:54
豪shr
阅读(972)
评论(0)
推荐(0)
摘要:
arr:数组,type:根据那个属性来过滤 function unique(arr, type) { const res = new Map(); return arr.filter((a) ⇒ !res.has(a[type]) && res.set(a[type], 1)); } 阅读全文
posted @ 2020-11-09 13:51
豪shr
阅读(308)
评论(0)
推荐(0)
摘要:
function format_input_num(obj){ // 清除"数字"和"."以外的字符 obj.value = obj.value.replace(/[^\d.]/g,""); // 验证第一个字符是数字 obj.value = obj.value.replace(/^\./g,"") 阅读全文
posted @ 2020-11-09 13:50
豪shr
阅读(163)
评论(0)
推荐(0)
摘要:
mysql 用当前时间当表名来复制另一张表的表结构,并复制原表30天之前的数据,然后删除原表30天前的数据 SET @sqlstr = CONCAT('create table tpl_cm_msg_old_',DATE_FORMAT(CURDATE(),'%Y%m%d'),' like tpl_c 阅读全文
posted @ 2020-11-09 13:49
豪shr
阅读(453)
评论(0)
推荐(0)
摘要:
先将字符串转为字符数组,然后将数组的第一个元素,即字符串首字母,进行ASCII 码前移,ASCII 中大写字母从65开始,小写字母从97开始,所以这里减去32。这种方法效率高,推荐使用 public String upperCase(String str) { char[] ch = str.toC 阅读全文
posted @ 2020-11-09 13:48
豪shr
阅读(557)
评论(0)
推荐(0)

浙公网安备 33010602011771号