上述用法也可以寫成:. re = /pattern/flag ... formElement.value 代表使用者輸入的字串,re.test() 則會傳回true 或false,代表比對是否成功。
確定! 回上一頁