oracle 查詢 某一時間段內的數據 oracle
select * from 表名 where 時間列 between to_date('2016-01-01','yyyy-mm-dd') and to_date('2017-09-18','yyyy-mm-dd')spa
js比較日期大小(字符)
function tab(date1,date2){
var oDate1 = new Date(date1);
var oDate2 = new Date(date2);
if(oDate1.getTime() > oDate2.getTime()){
console.log('第一個大');
} else {
console.log('第二個大');
}
}
get
jQuery取得select選中的值io
原本覺得jQuery("#select1").val();是取得選中的值,console
那麼jQuery("#select1").text();就是取得的文本。function
這是不正確的,正確作法是:date
jQuery("#select1 option:selected").text();select
js建立map加值
var map={};
map['key1']=value1;
map['key2']=value2;
map