- 比较日期字符串
let selected = "2018-01-02";
let lastSelected = "2018-01-03";
function compare(str1, str2) {
return str1 < str2;
}
for example
open in code open
let selected = "2018-01-02";
let lastSelected = "2018-01-03";
function compare(str1, str2) {
return str1 < str2;
}
for example
open in code open
本文标题:比较日期字符串
本文链接:https://www.haomeiwen.com/subject/xrugpftx.html
网友评论