reg = /^[(a-zA-Z0-9\u4e00-\u9fa5){1}_#]{4,20}$/; 本文轉自 小旭依然 51CTO部落格,原文連結:http://blog.51cto.com/xuyran/1868820