疑难Uncaught TypeError: Cannot supply flags when constructing one RegExp from another

new RegExp(/($|\s)/g); yes!
new RegExp(/($|\s)/,'g');no!部分安卓手机

你可能感兴趣的:(疑难Uncaught TypeError: Cannot supply flags when constructing one RegExp from another)