//获取当前日期并进行格式转化
getSysemTime:function () {
var newTime=Date.parse(new Date());
function add0(m){return m<10?'0'+m:m }
function format(newTime){
//newTime是时间搓,否则要parseInt转换
var time = new Date(newTime);
var y = time.getFullYear();
var m = time.getMonth()+1;
var d = time.getDate();
var h = time.getHours();
var mm = time.getMinutes();
var s = time.getSeconds();
return y+'-'+add0(m)+'-'+add0(d)+' '+add0(h)+':'+add0(mm)+':'+add0(s);
}
return format(newTime);
},
//div滚动事件
//滚动条事件
export_cent_all为出现滚动条的div
var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度)
var nScrollTop = 0; //滚动到的当前位置
$("#export_cent_all").scroll(function(){
if(!timeSlot){
nScrollHight = $(this)[0].scrollHeight;
nScrollTop = $(this)[0].scrollTop;
if(nScrollTop + 360==nScrollHight){
$scope.$emit('scrollBase',{tag:1});
}
}
});