`
文章列表

jquery 全选

//checkbox全选  $("#checkAll").on("click", function () {      if ($(this).prop("checked")) {          $("input[name='checkList']").prop("checked",true);      } else {          $("input[name='checkList']").prop("checked",false) ...

li 上下移动功能

 function menuUp(){   $("#"+liId+"").insertBefore($("#"+liId+"").prev());    }        function menuDown(){        $("#"+liId+"").next().insertBefore($("#"+liId+""));      }

springMvc分页

    博客分类:
  • java
@Override public Pagination<T> queryPagination(Class<T> clazz, Map<String, Object> param, int pageNo, int pageSize) { List<T> list = queryListResult(SQLCreator.set(clazz, ESQL.QUERYLISTRESULT), param); long count = queryListResultCount(SQLCreator.set(clazz, ESQL.QUERYLISTR ...

jdbc 连接mysql

    博客分类:
  • java
import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;     public class MysqlDemo {   public static void main(String[] args) throws Exception {         Connection conn = null;         String ...
set define off;

java 定时任务

    博客分类:
  • java
import java.util.TimerTask;   /** 

java 判断为空

    博客分类:
  • java
list.add(obj.getRegion()==null?"":obj.getRegion().toString());

ajax From 提交表单

jQuery("#userForm").ajaxSubmit({ type: "post", success: function(data){ alert(data);   } });

前台转 json

var fname = $("#saveBuy #firstname").val();  //saveBuy  from id var lname = $("#saveBuy #lastname").val();   function getPostJson(id){ var json = {};   $(id).find("input[type$='text']").each(function(i){    json[this.name]=this.value.replace(/(^\s*)|(\s*$)/g,&quo ...
/**        * 读取csv        *         * @param csvFilePath        * @throws Exception        */       public static void readerCsv(String csvFilePath) throws Exception {               CsvReader reader = new CsvReader(csvFilePath, ',', Charset.forName("utf-16"));// shift_jis日语字体,utf-8 ...
if (version == 2003) {// 2003                    POIFSFileSystem fs = new POIFSFileSystem(fis);                    HSSFWorkbook wb = new HSSFWorkbook(fs);                    HSSFSheet sheet = wb.getSheetAt(0);                    excelReader.readExcelContent(sheet,realfilename);               } ...
.transp { /* make the div translucent */    opacity: 0.6;                /* Firefox, Safari(WebKit), Opera)    filter: "alpha(opacity=60)"; /* IE 8 */    filter: alpha(opacity=60);   /* IE 4-7 */    zoom: 1;                     /* needed in IE up to version 7, or set width or height to ...
public static void main(String[] args) {   String str = "";   str += (int)(Math.random()*9+1);   for(int i = 0; i < 7; i++){//更改这里 可以控制生成数字的位数   str += (int)(Math.random()*10);   }   int num = Integer.parseInt(str);   System.out.println(num); } http://blog.sohu.com/s/MTA ...

js 格式化时间

    博客分类:
  • js
Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+" : this.getSeconds(), //second "q+" : Math.floor((this. ...
Oracle 获取当前日期及日期格式    获取系统日期:  SYSDATE()   格式化日期:     TO_CHAR(SYSDATE(),'YY/MM/DD HH24:MI:SS)                      或 TO_DATE(SYSDATE(),'YY/MM/DD HH24:MI:SS)   格式化数字:      TO_NUMBER
Global site tag (gtag.js) - Google Analytics