- 浏览: 50325 次
- 性别:
- 来自: 苏州
-
文章列表
//取当前时间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 ...
- 2009-01-16 10:21
- 浏览 905
- 评论(0)
<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 ...
- 2009-01-04 16:52
- 浏览 1221
- 评论(0)
[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 ...
- 2008-12-18 15:36
- 浏览 1662
- 评论(0)
[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 ...
- 2008-12-17 16:39
- 浏览 1807
- 评论(1)
DOM4j是一个易用的,开源的JAVA操作XML的API,写过一篇4种XML操作API的比较,DOM4j是性能和易用行最佳的。因此做一个小教程,供初学者学习。
学习DOM4j首先就先来了解下它主要的包
DOM4j所有的接口都在org.dom4j这个包里定义着
org.dom4j.Attribute : Attribute接口定义了XML文件的属性
org.dom4j.Branch : Branch为能够包含子节点的节点如XML元素和文档定义了一个公共行为
...
- 2008-12-15 10:18
- 浏览 1896
- 评论(0)