2015年2月1日 - var pattern=/test/;; var pattern= new RegExp('test');. 我們可以使用match 這個Method 來實作簡單的字串比較,先來試一個搜尋大小寫字母吧。
www.puritys.me