能不能帮我加个注释这段代码看不懂
<script language="javascript">function isTel(s)
{
[bold]var patrn=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;------尤其这一句这种组成格式讲解一下吧[/bold] if (!patrn.exec(s)) return false;
return true;
}
function isMobil(s)
{
[bold]var patrn=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;[/bold] if (!patrn.exec(s)) return false;
return true;
}
function isPostalCode(s)//校验邮政编码
{
[bold]var patrn=/^[a-zA-Z0-9 ]{3,12}$/;[/bold] if (!patrn.exec(s)) return false;
return true;
}
</script>