1.My97DatePicker回發的問題
曾今做過日期控件,測試過,有回發,搞了半天沒搞出來,一鳥鳥事,今天又遇到這個問題,使用了N種方法未實作,決定看裡面的代碼!
功夫不負有心人,我一行行的看,,,突然看到了在calendar.js這個代碼裡面有這個一句話
function My97DatePicker(){if(parent==window)return;
if(navigator.product!='Gecko'){
if(location.href.substring(location.href.length-3).toLowerCase()=='#97'){location.replace(location.href.substring(0,location.href.length-3));
return;}
else{location.replace(location.href+"#97");}
history.go(-1);}
尼瑪,我看到了history.go(-1);這個,難道這不就是傳說中的前一頁嗎??我直接删除,尼瑪,可以了!搞了半天,原來是這個鳥問題!終于OK了!