HTML相关试题
2021-03-07 18:28
阅读:582
YPE HTML>
标签:ret port mic back style func ble 提交 you
1、判断第二个日期比第一个日期大
"java" import="java.util.*" pageEncoding="GBK"%> String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> span>"-//W3C//DTD HTML 4.01 Transitional//EN">base href="">判断第二个日期比第一个日期大
2、用table显示n条记录,每3行换一次颜色,即1,2,3用红色字体,4,5,6用绿色字体,7,8,9用红颜色字体。
import="java.util.*" pageEncoding="UTF-8"%>
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
3、HTML 的 form 提交之前如何验证数值文本框的内容全部为数字? 否则的话提示用户并终止提交?
function chkForm(this)
{
varvalue = thist.d1.value;
varlen = value.length;
for(vari=0;i)
{
if(value.charAt(i)>"9"|| value.charAt(i))
{
alert("含有非数字字符");
returnfalse;
}
}
returntrue;
}
HTML相关试题
标签:ret port mic back style func ble 提交 you
原文地址:https://www.cnblogs.com/Tibbers/p/12884291.html
评论
亲,登录后才可以留言!