$(function(){
// var str = $('.no_last').html();
$('#phone').bind('input propertychange',function(){
var phone = $(this).val();
var lphone = phone.length;
if(lphone == 11){
// $('.no_last').html("<img src='__RES__/html/images/loading2.gif'>");
$.ajax({
url: "{:U('Index/getGoodsByAjax')}",
data:{'phone':phone},
type: 'post',
dataType: 'json',
async: true,
success: function(result) {
if (result.status) {
// $('#msgtel').text(result.msg);
// $('.no_last').html(result.str);
// return;
// // alert(result.msg);
// // location.reload();
}else{
// $('#telmsg').text(result.msg);
// $('.no_last').html(str);
// // $('.no_last').html("<li>请输入正确的手机号码</li>");
// // alert(result.msg);
// return false;
}
}
});
}else{
// $('#telmsg').text('手机号码不正确');
// $('.no_last').html(str);
}
});
});
发布于:2015年12月21日
已被阅读次
- 最新发布
- linux下svn提交忽略某些文件... (216)
- 使用批处理来批量更新、提交SVN... (186)
- linux查看目录文件大小命令 (200)
- linux tar打包压缩排除某个... (174)
- Linux tar压缩和解压 (237)
- SVN子命令add用法浅析 (175)
- 热门博文
- 网友FBI探案:马蓉iPad惊人发现... (43394)
- 霍金携手俄罗斯富豪耗资1亿美元寻找外... (4797)
- 如何才能查看PHP内置函数源代码... (1253)
- 微信支付开发当前URL未注册的解决方... (627)
- 《谁为爱情买单》中的经典面试 ... (490)
- 让虚拟主机也用上SVN:适用于个人的... (436)
- 精华博文
- [推荐]Centos7 安装配置 SVN (203)
- easyswoole框架安装 (215)
- php开启pecl的支持(推荐) (206)
- 1-10个恋爱表现:男朋友爱你程度到... (208)
- 女生喜欢你的10个程度,到第六个就可... (183)
- Eclipse 没有Server选项... (258)
- 友情链接
- 我来忙 (110)