var patrn=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;patrn.test(mobile),這兩句話什么意思啊,尤其是test方法是做什么用的 查看完整描述