h5如何读取手机短信
1、js代码使用h5的geolocation方法获取坐标,然后使用百度api的getlocation方法翻译成你想要得结果

2、 $(function(){,国绵/*仿刷新:检测是否存在cookie*/, if($.cookie("captcha")){

3、 伟此菌 var count = $.cookie("captcha");
,var btn = $('#getting');
, btn.val(count+'秒后可重新获取').attr('信民disabled',true).css('cursor','not-allowed')

4、var resend = setInterval(function(){, count--; if (count > 0){
btn.val(count+'秒后可重新获取')

5、attr('disabled',true).css('cursor','not-allowed');
$.cookie("captcha", count, {path: '/', expires: (1/86400)*count})

6、 }else {
,clearInterval(resend);
btn.val("获取验证码").removeClass('disabled').removeAttr('disabled style')

7、 }, 1000); } /*点击改变按钮状态,已经简略掉ajax发送短信验证的代码*/
