js determined regular string contains special characters and spaces

String only numbers, letters and Chinese composition, can not contain special characters and spaces.

/ ^ [\ U4e00- \ u9fa5_a-ZA-Z0-9] + $ /

 

Guess you like

Origin www.cnblogs.com/Mrrabbit/p/11125633.html