日期:2014-05-16  浏览次数:20402 次

js转换当前时间为数字进行比较(兼容IE所有版本)
	/**
	 * 把时间转换为整数
	 */
	convertTimeToInt : function(time){
		var result = null;
		if(time != null && time != ""){
    		result = parseInt(time.replace(/-/g,"").replace(/:/g,""),10);
		}
		return result;
	},

	// 获取当前时间hhmm的比较值
	getOraNowTimeInt : function(){
                var now = jAnXin.util.formatDate(new Date(), "hh:mm");
		return this.convertTimeToInt(now);
	},

?

?