摘要:
//浮点数加法运算 function FloatAdd(arg1,arg2){ var r1,r2,m; try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} m=Math.pow(10,Math.max(r1,r2)) return (arg1*m+arg2*m)/m } //浮点数减法运算 function FloatSub(arg1,arg2){ var r1,r2,m 阅读全文
摘要:
Js判断键盘按键window.document.onkeydown = disableRefresh;function disableRefresh(evt){evt = (evt) ? evt : window.eventif (evt.keyCode) { if(evt.keyCode == 116){ //do something }}}keycode 8 = BackSpace BackSpacekeycode 9 = Tab Tabkeycode 12 = Clearkeycode 13 = Enterkeycode 16 = Shift_Lkeycode 17 = Control. 阅读全文
摘要:
1,desc:降序,明天今天昨天,zyx...cba,.....321 sql语句:select * from SC_BackDiggingInfo where WriteDate<='2013-08-31' order by WriteDate desc 例如: WriteDate2013-08-28 00:00:00.0002013-08-27 00:00:00.0002013-08-26 00:00:00.0002013-08-25 00:00:00.0002013-08-24 00:00:00.0002013-08-23 00:00:00.0002013-08-2 阅读全文