else document.all.Textbox.value = "Cookie 未找到!" } </SCRIPT> </HTML>//
172.取月的最后一天 function getLastDay(year,month) { //取年 var new_year = year; //取到下一个月的第一天,注意这里传入的month是从1~12 var new_month = month++; //如果当前是12月,则转至下一年 if(month>12) { new_month -=12; new_year++; } var new_date = new Date(new_year,new_month,1); return (new Date(new_date.getTime()-1000*60*60*24)).getDate(); }//
173.判断当前的焦点是组中的哪一个 for(var i=0;i<3;i++) if(event.srcElement==bb[i]) break;//
174.实现类 package com.baosight.view.utils; import javax.servlet.jsp.tagext.TagSupport; import javax.servlet.http.HttpSession; public class Mytag extends TagSupport { public int doStartTag() throws javax.servlet.jsp.JspException { boolean canAccess = false; HttpSession session= pageContext.getSession(); if (canAccess) { return EVAL_BODY_INCLUDE; } else { return this.SKIP_BODY; } } }
175.在web.xml中添加定义 <taglib> <taglib-uri>guoguo</taglib-uri> <taglib-location>/WEB-INF/abc.tld</taglib-location> </taglib>
176.标签库中定义abc.tld <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd "> <taglib> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>hr</shortname> <uri>guoguo</uri> <info>Extra 3 Tag Library</info> <tag> <name>mytag</name> <tagclass>com.baosight.view.utils.Mytag</tagclass> <attribute> <name>id2</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib>
177.在使用自定义标签的页面中加入自己定义的标签, <%@ taglib uri="guoguo" prefix="guoguo" %> //自己定义标签
178.显示带边框的集 <fieldset style="border:1px gray solid;width:100px"> <legend>查询条件</legend> dfdfdf </fieldset>//
179.【文件(F)】菜单中的命令的实现
1、〖打开〗命令的实现
复制本页网址和标题,发送给你QQ/Msn的好友一起分享
上一篇:数据库的分页问题
下一篇:更多好资源获取 新版迅雷搜索全面上线