string: (string).match;?返回值:匹配到的字符串;
Array:[?數(shù)組].includes返回值:?true隐解、 false鞍帝;
正則:new RegExp();? ? ?RegExp 對象有 3 個方法:test()、exec() 以及 compile()煞茫。?test() 方法檢索字符串中的指定值帕涌。返回值是 true 或 false摄凡。
string: (string).match;?返回值:匹配到的字符串;
Array:[?數(shù)組].includes返回值:?true隐解、 false鞍帝;
正則:new RegExp();? ? ?RegExp 對象有 3 個方法:test()、exec() 以及 compile()煞茫。?test() 方法檢索字符串中的指定值帕涌。返回值是 true 或 false摄凡。