- 博客(120)
- 收藏
- 关注
转载 点击列表 获取table tr td 下的input value
$("#nihao").on("click","tr",function(){var id = $(this).children("td:eq(0)").find("input").val();alert(id);});转载于:https://www.cnblogs.com/cuijinlong/p/9753849.html
2018-10-08 13:38:00
592
转载 获取checkbox 一行数据
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%><% request.setAt...
2018-09-28 14:48:00
298
转载 静态方法
package cn.com.chinautrust.idm.repo.mybatis.provider;import org.springframework.util.StringUtils;import cn.com.chinautrust.idm.bo.user.AdminVO;public class AdminVOProvider { ...
2018-09-07 16:34:00
100
转载 springmvc Mapper注解写法
package cn.com.chinautrust.idm.repo.mybatis.mapper;import java.util.List;import org.apache.ibatis.annotations.Delete;import org.apache.ibatis.annotations.Insert;import org.apache.ib...
2018-09-07 16:33:00
904
转载 缓存类
package net.joystart.common.util;import java.util.Date;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;/** * 缓存类. */public class CacheManager { private st...
2018-04-26 10:26:00
126
转载 HttpServletRequest request 获取header 和 body
//获取headerEnumeration headerNames = request.getHeaderNames(); while (headerNames.hasMoreElements()) { String key = (String) headerNames.nextElement(); String value = r...
2018-04-18 09:23:00
1771
转载 MD5SignUtil
package net.joystart.common.util;import java.security.MessageDigest;import java.util.Comparator;import java.util.HashMap;import java.util.Map;import java.util.TreeMap;import sun...
2018-04-17 16:05:00
1019
转载 http post header body
/** * 向指定 URL 发送POST方法的请求 * * @param url * 发送请求的 URL * @param param * 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 * @retu...
2018-04-17 16:04:00
310
转载 js时间比较大小
var st=$("#startdate").datetimebox('getValue'); var et=$('#enddate').datetimebox('getValue'); if(dateCompare(st,et)==false){ $.messager.alert('消息','失效时间不得小于 生效时间'); return false;...
2018-03-27 16:42:00
436
转载 获取radio选择值
<input type="radio" name="address" value="0" /><input type="radio" name="address" value="1" /><input type="radio" name="address" value="2" />js中 :var addressID = $("in...
2018-03-08 12:04:00
134
转载 动态添加combobox
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE HTML><html><head><title>审批配置</title><%@ include file="../common/header.jsp"%><...
2018-03-07 12:00:00
566
转载 http post body 参数map
/** * 作者:崔金龙 * @param urlPath * @param map * @return * @throws Exception */ public static String postBody(String urlPath, Map<String, Object> map) throws Exception {...
2018-02-01 17:51:00
758
转载 jsp 写sql
$("#vehicleSourceID").combobox({ url:'<%=request.getContextPath()%>/rest/getcompany.jsp?companytype=1,2,5', valueField:'id', textField:'name', value:"", loadFilter:function(data)...
2018-01-31 18:30:00
556
转载 文件缓存类把文件放到缓存上
// 从缓存读取数据 String vehicleData = FileCache.Get("vdata_"+cityId, 5);//5分钟失效 // 保存到缓存 FileCache.Set("vdata_"+cityId, m);package net.joystart.common.util;import java.io.File;import j...
2018-01-24 15:06:00
299
转载 String 转jsonObject
JsonParser parser = new JsonParser(); JsonObject jobj = parser.parse(str).getAsJsonObject();String msg = jobj.get("message").getAsString(); String code = jobj.get("code").getAsString();...
2018-01-12 10:37:00
119
转载 接口sign生成算法
public class ZCloudSignUtil { public static boolean verify(Map<String, String> params, String md5_key) { if (params.get("sign") == null) { return false; } String sign = par...
2017-12-26 12:01:00
898
转载 mysql DATE_SUB函数用法
select a.id vehid,a.PlateNumber platenumber from t_base_vehicle a inner join t_base_vehicle_location b on a.SN=b.sn where a.status=17 and a.modifyDate <DATE_SUB(NOW(),INTERVAL 20 MINUTE...
2017-12-13 16:58:00
1174
转载 String 转 Map
GsonBuilder gb = new GsonBuilder(); Gson g = gb.create(); Map<Object, Object> map1 = g.fromJson(result, new TypeToken<Map<Object, Object>>() { }.getType());转载于:https://...
2017-11-25 08:54:00
144
转载 通用数据库查询类(DataBaseUtil)读写分离
package net.joystart.data;import java.sql.*;import java.util.Map;import java.util.HashMap;import java.util.List;import java.util.ArrayList;import net.joystart.common.util.ConfigUt...
2017-11-22 16:45:00
343
转载 俩个日期相减获取 02:02:10 格式 天 小时 分钟
Date d1 = vo.getAllocationtime(); Date d2 = new Date(); long diff = d2.getTime() - d1.getTime();//这样得到的差值是微秒级别 long days = diff / (1000 * 60 * 60 * 24); long hours = (diff-days*...
2017-11-10 17:52:00
141
转载 redis 往队列里面放值(value列表为list)
redisTemplate.setValueSerializer(new GenericToStringSerializer<String>(String.class));//设置编码 add cjlredisTemplate.opsForList().leftPush("kpmsg:queue", "{a:1,b:2,c:3,d:你好}");redisTempl...
2017-10-25 11:23:00
709
转载 支付方法一周年活动时间算法
package net.joystart.order.service.impl;import java.math.BigDecimal;import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Ar...
2017-10-17 18:21:00
165
转载 StringMVC 不需要事务再Controller写SQL语句
String logsql = "INSERT INTO evrentallogs.log_edaijia(channel,orderId,status,driverNo,sign,createtime) VALUES('"+channel+"','"+orderId+"','"+status+"','"+driverNo+"','"+sign+"',NOW())";Data...
2017-10-12 17:41:00
238
转载 动态获取下拉列表数据
@RequestMapping("/getServiceCityList") public void getServiceCityList(HttpServletResponse response,HttpServletRequest request) { String cityId = request.getParameter("id"); int icit...
2017-09-29 15:54:00
446
转载 ConfigUtil 系统配置文件参获取类
package net.joystart.common.util; import java.io.IOException;import java.io.InputStream;import java.util.Properties;import org.springframework.core.io.ClassPathResource;import...
2017-09-26 11:03:00
99
转载 如何实现在H5里调起高德地图APP
点标记位置展示通常我们都使用Marker点来进行位置的标定,所以JSAPI在Marker类中提供了markOnAMAP的方法,这个方法接受一个JSON对象参数,参数对象包含position和name两个属性,调起之后将在高德地图客户端或者Web站点标记显示对应的Marker点,基于marker点的展示,用户可以接着使用周边搜索、路线规划和导航等功能。扫描右侧二维码,点击地图中见的ma...
2017-09-21 19:16:00
2405
转载 String转JSONObject
String elecAddress = TengXunAPIUtil.getDetailByGPS(Double.parseDouble(parkinglot.getLongitude()),Double.parseDouble(parkinglot.getLatitude()),1); if (elecAddress != null && !el...
2017-09-21 18:13:00
144
转载 html5 导航路线规划开启导航功能
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><title>巴哥出行代驾任务管理</title><meta charset="utf-8"><meta http-equiv="Content-T...
2017-09-21 15:24:00
868
转载 java 返回 json格式
package net.joystart.common.controller;import java.io.IOException;import java.io.PrintWriter;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Date;im...
2017-09-15 09:25:00
109
转载 JAVA直接跳转到HTML5页面
package net.joystart.taskagent.controller;import java.io.IOException;import java.io.UnsupportedEncodingException;import java.security.SignatureException;import java.text.SimpleDateFor...
2017-09-07 11:57:00
3289
转载 http get和post 接口方式
package net.joystart.common.util;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.io.PrintWriter;import java.io.UnsupportedEncod...
2017-08-31 09:40:00
107
转载 接口post包的方式传输
public static String doPostJson(String url, String param) { String responseBody = ""; HttpPost httppost = new HttpPost(url); StringEntity entities = new StringEntity(param, "UTF-8")...
2017-08-29 16:42:00
129
转载 滚动下往上弹出提示信息框
function showTip(content){layer.open({ content: content//提示内容 ,skin: 'msg' ,time: 2 //显示时间});}转载于:https://www.cnblogs.com/cuijinlong/p/7443676.html...
2017-08-28 14:19:00
221
转载 DriverManager 查询数据库拼接BUFFER
Connection conn = null; Statement stmt = null; ResultSet rs = null; try{ Class.forName("com.mysql.jdbc.Driver"); String dbNmae = "l...
2017-07-27 14:51:00
146
转载 DriverManager不通过框架链接数据库
public List<SalesRegisterConfig> getSalesRegisterConfigList() { Connection conn = null; Statement stmt = null; ResultSet rs = null; List<Sa...
2017-07-27 11:26:00
85
转载 下拉列表树形结构
上级菜单<select id="cc" class="easyui-combotree" style="width:223px;" name='parentid' data-options="url:'<%=request.getContextPath()%>/sysMenu/combolist'"> @RequestMap...
2017-07-18 14:24:00
565
转载 EasyUi 菜单树形 列表显示
$(function($) { $('#tg').treegrid({ url:'<%=request.getContextPath()%>/sysMenu/list', rownumbers: false, treeField: 'name', ...
2017-07-18 14:18:00
296
转载 mysql servers实现层拼写SQL
@Override public List<controlresult> getControlresultList(Map<String, Object> params) throws Exception { Logger log = Logger.getLogger(RemoteControlController.class); Lis...
2017-07-18 11:22:00
105
转载 easyUI 页面操作
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE HTML><html><head><title>重点跟踪</title><%@ include file="../common/header.jsp"%><...
2017-07-10 14:11:00
152
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人