javascript小记

Code

js中的正则

 var re=new RegExp('(^| )'+"te"+'( |$)');
 alert(re.test("abc te"));

原文地址:https://www.cnblogs.com/lexus/p/1402269.html