js基础---date的格式化与exec()正则表达式

chenyanglearing / 2023-05-09 / 原文

exec():获取字符串中符合正则表达式的内容。
正则表达式中的匹配模式:i代表忽略大小写,g代表全局匹配