struts2时间控件
jsp页面 写道
<head>
<sx:head theme="ajax" /> 引用这个是必不可少的,不然会报错
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<script language="JavaScript" type="text/javascript" src="${webPath}/time/WdatePicker.js" ></script>
</head>
<input type="text" class="sea_input_1" name="recordVO.startDate" id="startDate" onchange="calculate('m')" value="<s:property value="recordVO.startDate"/>" onclick="WdatePicker()" class="timeA"/>
<sx:head theme="ajax" /> 引用这个是必不可少的,不然会报错
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<script language="JavaScript" type="text/javascript" src="${webPath}/time/WdatePicker.js" ></script>
</head>
<input type="text" class="sea_input_1" name="recordVO.startDate" id="startDate" onchange="calculate('m')" value="<s:property value="recordVO.startDate"/>" onclick="WdatePicker()" class="timeA"/>
然后就是下载一个时间控件包