提交 10526521 编写于 作者: 柒木楠's avatar 柒木楠

生产代码片段

上级 ca207a2f
console.log("欢迎来到 InsCode");
\ No newline at end of file
const regex = /^(?:[0-5]?[0-9]{1,2}|6[0-7][0-8])$/;
const number = '123';
if (regex.test(number)) {
console.log('符合要求');
} else {
console.log('不符合要求');
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册