个人-正则

1.

 /\s/表示,空白 为 true

/\S/表示,非空白 为 true

new RegExp(/\S/).test('  ') => fasle

猜你喜欢

转载自www.cnblogs.com/tongbiao/p/11697040.html