摘要:
MsSql 随机取数据 select top 10 * from TableName order by newid()Access 随机取数据 selectSELECT top 10 id FROM 表1 order by rnd(id)mySql 随机取数据SELECT id FROM gueze order by rand() limit 10 阅读全文
摘要:
Js 时间间隔计算(间隔天数)function GetDateDiff(startDate,endDate) { var startTime = new Date(Date.parse(startDate.replace(/-/g, "/"))).getTime(); var endTime = new Date(Date.parse(endDate.replace(/-/g, "/"))).getTime(); var dates = Math.abs((startTime - endTime))/(1000*60*60*24); ... 阅读全文
摘要:
/* input 和 textarea 最大文字限定插件 * 修改版, 一个中文表示1一个字, 一个英文半个字; * TextLimit - jQuery plugin for counting and limiting characters for input and textarea fields * * pass '-1' as speed if you don't want the ch... 阅读全文