JAvascriptの文字列比較サイズ
1132 ワード
JavaScriptでは、[>]または【
一般的な場所は、通常、標準的な時間フォーマットを比較するシーンです.
「見たい景色を見るには、どのくらいの道を行けばいいのか」
var a = "1.2.2a";
var b = "1.2.2b";
console.log(a > b); // true
console.log(a < b); // false
a = "1.02.1";
b = "1.1";
console.log(a > b); // false
console.log(a < b); // true
一般的な場所は、通常、標準的な時間フォーマットを比較するシーンです.
console.log('2019-12-23' > '2019-12-20'); // true
「見たい景色を見るには、どのくらいの道を行けばいいのか」