var idLength = $("#id").length;if(idLength < 6 || idLength > 16){ alert("6到16数字的验证");}
取得字符串 然后.length