锘??xml version="1.0" encoding="utf-8" standalone="yes"?>伊人久久久久久久久久久,午夜天堂精品久久久久,国产成人亚洲综合91精品 http://www.aygfsteel.com/xiaochao/category/29989.htmlzh-cn Thu, 31 Dec 2009 23:51:34 GMT Thu, 31 Dec 2009 23:51:34 GMT 60 jsTree ajax浣跨敤鏂規硶 http://www.aygfsteel.com/xiaochao/articles/307792.html灝忚秴 灝忚秴 Wed, 30 Dec 2009 08:43:00 GMT http://www.aygfsteel.com/xiaochao/articles/307792.html http://www.aygfsteel.com/xiaochao/comments/307792.html http://www.aygfsteel.com/xiaochao/articles/307792.html#Feedback 0 http://www.aygfsteel.com/xiaochao/comments/commentRss/307792.html http://www.aygfsteel.com/xiaochao/services/trackbacks/307792.html 闃呰鍏ㄦ枃 ]]> 褰揂JAX閬囦笂History http://www.aygfsteel.com/xiaochao/articles/ajax_history.html灝忚秴 灝忚秴 Tue, 03 Jun 2008 02:09:00 GMT http://www.aygfsteel.com/xiaochao/articles/ajax_history.html http://www.aygfsteel.com/xiaochao/comments/205491.html http://www.aygfsteel.com/xiaochao/articles/ajax_history.html#Feedback 0 http://www.aygfsteel.com/xiaochao/comments/commentRss/205491.html http://www.aygfsteel.com/xiaochao/services/trackbacks/205491.html 褰撴垜浠湪浣跨敤ajax鏃墮氬父浼氶亣鍒頒嬌鐢╤istory.back()鎴杊istory.go(-1)鐨勬儏鍐?榪欐牱鍦ㄨ繑鍥瀉jax欏甸潰鏃墮氬父浼氭椂ajax鐨勬暟鎹涪澶?涓嶆槸浣犳渶鍚庝竴嬈¢夋嫨鐨刟jax鏁版嵁);榪欑鎯呭喌涓嬫垜浠渶瑕佷繚瀛榓jax鐨勫弬璁╁叾鑳藉湪history.back()涓搗鍒頒綔鐢?鏄ㄥぉ鏅氫笂璇曚簡寰堝鏂規硶閮戒笉琛?榪欎釜鏃跺欐垜浠氨闇瑕佸埄鐢╤istory.back()榪斿洖鐨勬槸涓婁竴涓摼鎺ョ殑鐗圭偣閫氳繃window.location.hash鏉ュ瓨鍦╝jax鎵鐢ㄥ埌鐨勫?涓嬮潰鏄唬鐮佽瘯渚?
function getSetMeal(obj)
{
window.location.hash = obj.value;
var param = " test= " + obj.value;
new Ajax( " test.do " ,{method:'post',onComplete:setMainSuit}).request(param);
}
鍦ㄩ〉闈㈡椂璋冪敤鏃?br />
< script >
var first = " $!{first} " ||- 1 ;
var hash = window.location.hash;
if (hash != "" )
{
// 榪欓噷鐨勫弬鏁拌В鏋愪綘鍙互鐢ㄨ嚜宸辯殑鏂規硶瀹炵幇;
var str = hash.replace('#','');
var obj = new Object();
obj.value = str;
getSetMeal(obj);
}
else if (first !=- 1 )
{
var obj = new Object();
obj.value = first;
getSetMeal(obj);
}
</ script >
涓嬮潰鍦ㄤ粙緇嶄竴縐嶆儏鍐電殑瑙e喅鍔炴硶,褰撲綘鐨刟jax欏甸潰榪樻湁榪斿洖涓婁竴涓〉闈㈡椂,濡傛灉浣犱嬌鐢ㄤ簡hash瀛樺肩殑鍋氭硶閭d箞鍦ㄤ嬌鐢╤istory.go(-n)鏃舵槸涓嶅ソ鎺у埗鐨?榪欐椂鎴戜滑闇瑕佷嬌鐢╤istory.go(string)鐨勬柟娉曞噯紜殑璇存槸history.go(url)璇存槑涓婃槸榪斿洖鏈榪戠殑閾炬帴鍖呭惈鐨勪覆,涓嶈繃鎴戜嬌鐢ㄤ覆娌℃湁璧蜂綔鐢ㄥ彧鏈変嬌鐢╱rl;浠g爜濡備笅:
1 function back()
2 {
3 var domain = window.location.host;
4 var protocol = window.location.protocol;
5 // 榪欎釜url鏄氳繃request.getHeader("Referer");鏉ヨ幏鍙栫殑
6 var url = " $!{url} " || " -1 " ;
7 // 榪欐牱鏄繑鍥炲浐瀹氱殑榪欐牱涓嶅ソ
8 // history.go(protocol+"http://"+domain+"/test1.do");
9 history.go(url);
10
11 }
12
]]>javascript cookie鎿嶄綔 http://www.aygfsteel.com/xiaochao/articles/cookie.html灝忚秴 灝忚秴 Wed, 12 Mar 2008 01:15:00 GMT http://www.aygfsteel.com/xiaochao/articles/cookie.html http://www.aygfsteel.com/xiaochao/comments/185553.html http://www.aygfsteel.com/xiaochao/articles/cookie.html#Feedback 0 http://www.aygfsteel.com/xiaochao/comments/commentRss/185553.html http://www.aygfsteel.com/xiaochao/services/trackbacks/185553.html 浠g爜濡備笅錛?br />
var Cookie = {
get : function (name){
var value = "" ;
var arr = document.cookie.match( new RegExp( " (^| ) " + name + " =([^;]*)(;|$) " ));
if (arr != null ) { value = unescape(arr[ 2 ]); }
return value;
},
set : function (name,value,days){
if (isNaN(days)){
document.cookie = name + " = " + escape(value) + " ; " ;
} else {
document.cookie = name + " = " + escape(value) + " ;expires= " + new Date( new Date().getTime() + days * 86400000 ).toGMTString();
}
},
del : function (name){
document.cookie = name + " =;expires= " + new Date().toGMTString();
}
}
闄勫甫涓涓棩鏈熸牸寮忓寲鏂規硶錛?br />
/**/ /*
*瀵筪ate瀵硅薄澧炲姞format鏂規硶,鍙互鑾峰彇褰撳墠鏃墮棿鍒板璞?br />
*濡?
*var date = new Date();
*date.Format("YYYY-MM-DD HH:MI:SS");榪斿洖:2008-01-25 14:30:01;
*date.Format("YYYY/MM/DD HH:MI:SS");榪斿洖:2008/01/25 14:30:01;
**/
Date.prototype.Format= function (str)
{
var year = this .getFullYear();
var month = ( this .getMonth() + 1 ) < 10 ? " 0 " + ( this .getMonth() + 1 ):( this .getMonth() + 1 );
var day = this .getDate() < 10 ? " 0 " + this .getDate(): this .getDate();
var hour = this .getHours() < 10 ? " 0 " + this .getHours(): this .getHours();
var min = this .getMinutes() < 10 ? " 0 " + this .getMinutes(): this .getMinutes();
var sec = this .getSeconds() < 10 ? " 0 " + this .getSeconds(): this .getSeconds();
tmp = str.replace( " YYYY " ,year);
tmp = tmp.replace( " MM " ,month);
tmp = tmp.replace( " DD " ,day);
tmp = tmp.replace( " HH " ,hour);
tmp = tmp.replace( " MI " ,min);
tmp = tmp.replace( " SS " ,sec);
return tmp;
}
]]> window.alert鏁堟灉 淇select bug http://www.aygfsteel.com/xiaochao/articles/alert.html灝忚秴 灝忚秴 Wed, 12 Mar 2008 01:11:00 GMT http://www.aygfsteel.com/xiaochao/articles/alert.html http://www.aygfsteel.com/xiaochao/comments/185550.html http://www.aygfsteel.com/xiaochao/articles/alert.html#Feedback 0 http://www.aygfsteel.com/xiaochao/comments/commentRss/185550.html http://www.aygfsteel.com/xiaochao/services/trackbacks/185550.html 闃呰鍏ㄦ枃 ]]>
主站蜘蛛池模板:
石首市 |
晋城 |
奈曼旗 |
银川市 |
阿克陶县 |
青岛市 |
昔阳县 |
尼勒克县 |
甘南县 |
贵州省 |
措勤县 |
安庆市 |
墨玉县 |
鸡泽县 |
湛江市 |
上思县 |
宜宾市 |
郯城县 |
抚顺县 |
鸡西市 |
桃园县 |
西昌市 |
文成县 |
宁波市 |
英吉沙县 |
梧州市 |
浑源县 |
天柱县 |
鄂尔多斯市 |
兴义市 |
横峰县 |
嵩明县 |
温州市 |
桐梓县 |
台湾省 |
托克托县 |
台北县 |
宽甸 |
延庆县 |
建昌县 |
西乌珠穆沁旗 |