标签:比较大小 div javascrip pre asc gettime 字符 blog some
代码如下
var a = '2016-01-01 12:12:12';
var b = '2016-01-01 12:12:13';
var al = new Date(a).getTime();
var bl = bew Date(b).getTime();
if(al > bl) {
// do something
}
标签:比较大小 div javascrip pre asc gettime 字符 blog some
原文地址:http://www.cnblogs.com/martinl/p/7833804.html