站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题利用JavaScript实现时间段的查询

利用JavaScript实现时间段的查询

摘要: 利用JavaScript实现时间段的查询


以后,要是做时间段的查询就方便了,不过就是程序有点多,呵呵!

希望大家能帮我测试一下,输入的时间格式是1999-01-01或2000-10-01或2000-10-10,即月份和时间必须是两位,为了方便大家测试,把所有文件放在这里,只要运行time_main.asp就可以了,多谢了!



time_main.asp

<%@ Language=VBScript %>

<head>

</head>





您的浏览器不支持FRAMES






time.asp
<%@ Language=VBScript %>

<head>

</head>
<body>

<%
starttime = Request.Form("starttime")
endtime = Request.Form("endtime")

Response.Write starttime&"
"
Response.Write endtime&"
"

%>
请点击“查询”按钮

</body>



time_search.asp
<%@ Language=VBScript %>

<head>

</head>
<body>


<form name="tform" method="post">
按时间(以[YYYY-MM-DD]格式输入):
<input type="text" name="starttime" size=10 maxlength=10 value="1999-01-02">到
<input type="text" name="endtime" size=10 maxlength=10 value="2000-01-01">
<input type="button" name="tsearch" value="查 询" onclick="return tcheck()">
</form>


<script language="javascript">

↑返回目录
前一篇: javascript里类似select case该如何用
后一篇: Javascript 实现下拉列表连动,提示:Array not define