2017 9月18日

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