自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 2021-07-13 esui 内对象传递

{field:'count',title:'活动记录',formatter:function (value,row,index){ var html = " <a href='javascript:count(" + JSON.stringify(row) + ")'>"+row.count+"</a>"; return html; }},

2021-07-13 17:03:03 123 1

原创 频次定制时间遍历、月、周、日、隔日

package test;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.*;public class yearTest { public static void main(String[] args) throws ParseException { //String hz = request.getParameter("hz")

2020-09-25 10:12:57 215 1

原创 mui关闭其他页面,防止重复打开页面

// 获取所有Webview窗口 var curr = plus.webview.currentWebview(); var wvs = plus.webview.all(); for (var i = 1, len = wvs.length; i < len; i++) { //关闭除主页页面外的其他页面 if (wvs[i].id == curr.id||"index"==wvs[i].id){ continue; }else{ plus.webview.close.

2020-08-12 09:35:21 324 1

原创 jquery版本过高导致,‘msie’ of undefined

<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

2020-06-18 17:03:30 353

转载 从一个html页面传值到另一个页面,两个html之间的值传递(js location.search用法)

a.html:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>a页面 </title><script type="text/javascript" src="js/jquery/jquery-1.12.1.min.js"></script><script type="text/javascript">function to

2020-06-17 11:59:20 1970

原创 多选删除

多选删除function delBlxx(){ var row = $('#blxx_view').datagrid('getSelections'); var ids=[]; for(var i=0;i<row.length;i++){ if(row[i].id != undefined && row[i].id !="undefined") ids.push(row[i].id); } if(row == null){ layer.alert('请选择需要删

2020-06-08 12:05:17 350

原创 正则验证

身份证//身份证正则过滤function isCardNo(card){ // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; if(reg.test(card) === false) { alert("身份证输入不合法"); return false; }}******

2020-06-05 15:57:37 138

原创 juqery获取单选按钮

$("input[name='radio1']").each(function(i){ if($(this).is(":checked")) { season = $(this).val(); } });//笔记记录

2020-06-02 13:59:13 118

原创 获取标准差,方差

/** * 获取标准差 * @return */ public static double getSquare(int[] array){ // int[] array = {15,96,85,88,18,58,68,16,6,99,88,11,8,36,82,44,55,66}; int sum = 0; for(int i=0;i<array.length;i++){ sum += ...

2020-06-01 16:46:24 248

原创 String数组转int数组

['1','2','3'].map(Number)

2020-05-22 15:15:44 343

原创 获取时间段,遍历学期,周时间查询周排名第一学生

静态方法/** * 获取周时间 * @param n=-1上周,n=0本周,1下周 * @return */ public static Map<String,Object> getWeekTime(int n){ Map<String,Object> paraMap= new HashMap<String,Object>(); SimpleDateFormat dateFormat = new SimpleDateF

2020-05-19 14:49:46 106

原创 mysql排名写法

//并列排名SELECT score.*,CASE WHEN @score = score THEN @scoreNum WHEN @score := score THEN @scoreNum :=@scoreNum+1 WHEN @score =0 THEN @scoreNum :=@scoreNum+1 END AS scoreNum FROM score,(SELECT @scoreNum :=0,@score :=NULL) init ORDER BY score DESC

2020-05-18 18:38:21 266

原创 日期初始化设置

日期初始化设置SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar calendar = Calendar.getInstance(); // 设置年份 calendar.set(Calendar.YEAR, calendar.get(Calendar.YEAR)); // 设置月份 calendar.set(Calendar.MONTH,calendar.get(Cale

2020-05-18 18:35:15 939

转载 unicode转码

/** * @Title: unicodeEncode * @Description: unicode编码 * @param string * @return */ public static String unicodeEncode(String string) { char[] utfBytes = string.toC...

2020-04-30 15:45:21 268

原创 json实体类转换为JSON字符串

using System;using Newtonsoft.Json;namespace demo{ public class Test { public string TestA { get; set; } // 测试参数A public string TestB { get; set; } // 测试参数B public...

2020-02-27 20:25:25 602 1

原创 NT账号获取方法

获取NT账号Request.LogonUserIdentity.Name.Substring(Request.LogonUserIdentity.Name.IndexOf(@"\") + 1);

2020-01-09 17:11:19 2462

原创 文件上传服务器,删除下载操作

文件上传控制器 private readonly string UPLOAD_DIRECTORY = "UploadFile/"; /// <summary> /// 文件上传逻辑 /// </summary> [HttpPost] public JsonResult UpLoadFileS...

2020-01-06 16:25:11 292

原创 NPOI DataTable格式导出Excel

NPOI 汇出Excelusing System;using System.Collections.Generic;using System.Text;using System.IO;using NPOI;using NPOI.HPSF;using NPOI.HSSF;using NPOI.HSSF.UserModel;using System.Data;namespace ...

2020-01-06 15:55:31 291

原创 Ado sqlHelper

using System;using System.Collections.Generic;using System.Text;using System.Data.SqlClient;using System.Data;//using System.Configuration;partial class sqlHelper{ public static string G...

2020-01-02 12:04:40 147 1

原创 ExcelHelper文件读取 +写入数据库+前端JS

前端JS //按钮全选和反选 $('#data_table').DataTable({ searching: false, destroy: true, autoWidth: true, ordering: false, }); $('#check_all').click(function() { ...

2019-12-26 11:34:29 622

空空如也

空空如也

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

TA关注的人

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