- 浏览: 41758 次
- 性别:
- 来自: 深圳
最新评论
-
fengshinianshao:
非常牛逼有效的做法。
s:doubleselect 使用 -
zqleye:
有,不好意思最近比较忙,没时间来得急看
java反射取属性值 -
一路的夏天:
lz的方法好繁琐啊!有不有更清晰地啊!感觉绕了一个大圈子。
java反射取属性值 -
speed_guo:
找个原创的或实际应用的真难
jsp页面缓存设置及其搜索引擎
文章列表
$(function (){
var A0="";
var A1="";
var A2="";
jQuery.each(s.insurance,function (i0,v){
A0 +='<option value="'+v.vendorId+'">'+v.cnName+'</option>';
jQuery.each(v.insuranceList,function (i1,v1){
...
oracle 监控sql
- 博客分类:
- sql
1.监控事例的等待: select event,sum(decode(wait_time,0,0,1)) prev, sum(decode(wait_time,0,1,0)) curr,count(*)from v$session_wait group by event order by 4;2.回滚段的争用情况:select name,waits,gets,waits/gets ratio from v$rollstat a,v$rollname b where a.usn=b.usn;3.监控表空间的I/O比例:select df.tablespace_name nam ...
第一个下拉框选择城市后第二个下拉框自动显示相关的区域名字://城市对象public class CityBean {private int cityid;private String cityname;public int getCityid() { return cityid;}public void setCityid(int cityid) { this.cityid = cityid;}public String getCityname() { ...
private static void println(Collection c,String ...strs) {
StringBuffer str = new StringBuffer();
try {
for (Object object2 : c) {
Class clazz = object2.getClass();
Method[] metds=clazz.getMethods();
...
function strDateTime(str) { var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/; var r = str.match(reg); if(r==null)return false; var d= new Date(r[1], r[3]-1,r[4],r[5],r[6],r[7]); return (d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]& ...
package com.ch;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
/**
* 根据反射取对象的值
*
* ...
JSP页面缓存设置
关键字: 页面缓存
服务端方法:
Java代码
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", -10);
%>
在登陆页面和登陆后页面均加入这段代码即可
注意,一定要在登陆页面(或类似功能的页面使session无效)
客户端方法:
me ...
Oracle: 方法一: SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM <= 40 ) WHERE RN >= 21; 方法二: SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A ) WHERE RN between 21 an ...
判断滚动条是否到达页面的尾部?
- 博客分类:
- js
取窗口滚动条高度
function getScrollTop()
{
var scrollTop=0;
if(document.documentElement&&document.documentElement.scrollTop)
{
scrollTop=document.documentElement.scrollTop;
}
...
//Bean.javapackage com.sort;public class Bean { private String name; private String sex; public Bean() { super(); // TODO Auto-generated constructor stub } public Bean(String name, String sex) { super(); this.name = name; this.sex = sex; } publi ...
<SCRIPT type=text/javascript>kfguin="317582003";ws="www.iic.cn"; type="0";</SCRIPT>
<SCRIPT src="kf.js" type=text/javascript></SCRIPT>
<script language="JavaScript" type="text/JavaScript"><!-- function displayScreenSize() { var bodyWidth =document.body.clientWidth; //网页可见区域宽
var bodyHeight =document.body.clientHeight; //网页可见区域高
...