自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 两个时间相减转化为天,时,分

后台:SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");String fa_time = equipmentFailureList.get(i).getFa_time();Long fa_time_mills = sdf.parse(fa_time).getTime();Long millsTime = ...

2018-08-31 15:46:10 1467

原创 Ajax上传文件

$('#formSubmit').submit(function (event) { //首先验证文件格式 var fileName = $(this).find("input[name=upfile]").val(); if (fileName === '') { alert('请选择文件'); return; } var...

2018-08-31 15:36:49 159

原创 特殊样式 css

    .lb1{   //红色圆点                width: 10px;                height: 10px;                background-color: red;                border-radius: 5px;                margin-bottom: 0px;           ...

2018-08-10 13:56:50 316

原创 java 程序后台自启动

public void run(ApplicationArguments var1) throws Exception{ while (true){ //无限循环 pingIp(); Thread.currentThread().sleep(1000);//毫秒 暂停1秒后重复循环 避免并发 } }...

2018-08-09 16:39:13 1178

转载 局部刷新 $.load()

第一种:当某几个页面都有相同的头部、导航、底部的时候,点击导航链接可以在几个页面中切换,此时想要的效果是点击链接后只切换内容部分,其他不再重新加载<!DOCTYPE html><html>  <head>    <title>ajax局部刷新</title>  </head>  <body> 

2018-08-09 09:46:45 4446

转载 JS兼容性问题:window.locatin.href is not a function

在FireFox 43、Chrome 44浏览器下,点击某个按钮进行页面跳转时,控制台提示 window.location.href is not a function.上网搜索结果后,得到的解决方案如下:将 1 window.location.href ("http://www.cnblogs.com/code-ten/");  修改为:...

2018-08-08 08:47:43 282

原创 dropdownlist 动态加载下拉框

//绑定厂区 $.ajax({ url: "../getCalbody", success: function(data) { $("#factory").append("<option value=''>--请选择-- </option>")...

2018-08-06 10:16:53 653

原创 $.ajax $.post $.getJSON与后台交换

function confirmd() { var msg = "确定删除此设备?"; var strid=$("#hidID").val(); if(confirm(msg) == true) { $.ajax({url:"../updateEquipment",data:{"eq_id": strid,"dr":"1"},

2018-08-06 10:15:11 261

原创 主键 20个字符 可避免并发

private static Long timeMillis=null;public static String getPK(String prefix){ if(prefix==null) prefix=""; if(timeMillis==null) timeMillis=System.currentTimeMillis()*10; ...

2018-08-06 09:55:30 155

原创 ping IP地址

package com.xd.monitor.service;import com.xd.monitor.entity.Equipment;import com.xd.monitor.entity.EquipmentFailure;import org.springframework.beans.factory.annotation.Autowired;import org.sprin...

2018-08-06 09:53:44 1473

原创 JAVA 自启动 服务启动时后台自动运行一个servlet

package com.xd.monitor.controller; import com.xd.monitor.entity.Equipment; import com.xd.monitor.service.EquipmentService; import com.xd.monitor.service.PingService; ...

2018-08-06 09:46:27 791

原创 导入EXCEL

HTML 前台$(function() { $('#formSubmit').submit(function (event) { //首先验证文件格式 var fileName = $(this).find("input[name=upfile]").val(); ...

2018-08-06 09:38:27 158

原创 菜单栏点击事件,用ajax加载页面

<body> //定义菜单栏 <div tabindex="1" class="sidebar" id="sidebar" style="cursor: url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize; -ms-overflow-x: h...

2018-06-28 17:10:34 1410

空空如也

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

TA关注的人

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