`
文章列表

日期的计算

    博客分类:
  • java
//取当前时间n天后的日期(YYYY-MM-DD)     protected String nextMonthDateToStrHHMISS(int d){     String sd = ""; try { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); calendar.add(Calenda ...
<html> <head> <script src="jquery-1[1].2.1.pack.js"></script> <script type="text/javascript"> $(document).ready(function (){ $('#ok').click( function (){ var name=$('#fruit').val(); if(name=="" || name==null) { alert("pl ...

java编程思想

    博客分类:
  • java
java编程思想
[color=indigo] 方法一: $('#selectId').change(function (){ $.ajax({ url:url, type:'post', //数据发送方式 dataType:'xml', //接受数据格式 data:'par_int_org_id='+$("select[@id='select1'] option[@selected]").val(),  //要传递的数据 error:function(json){     alert( "not lived!");   },   success: functi ...
[color=indigo][color=indigo]public class Student{   private Integer sex ;   private String typeName ="good";   private Date sysdate  ;   ... } public class TestcopyBean{ public static Student getMap() {[color=indigo]    Student map = new Student();    map.setSex(new Integer(1));    map ...
DOM4j是一个易用的,开源的JAVA操作XML的API,写过一篇4种XML操作API的比较,DOM4j是性能和易用行最佳的。因此做一个小教程,供初学者学习。          学习DOM4j首先就先来了解下它主要的包                 DOM4j所有的接口都在org.dom4j这个包里定义着                org.dom4j.Attribute : Attribute接口定义了XML文件的属性                org.dom4j.Branch  : Branch为能够包含子节点的节点如XML元素和文档定义了一个公共行为            ...
Global site tag (gtag.js) - Google Analytics