JavaScript. var pattern = new RegExp('[0-9]{4}-[0-9]{2}-[0-9]{2}'); var str = '1996-08-06'; if(str.match(pattern)){ // doSomething } ...
確定! 回上一頁