$(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提交忽略某些文件... (259)
- 使用批处理来批量更新、提交SVN... (227)
- linux查看目录文件大小命令 (246)
- linux tar打包压缩排除某个... (211)
- Linux tar压缩和解压 (273)
- SVN子命令add用法浅析 (221)
- 热门博文
- 网友FBI探案:马蓉iPad惊人发现... (43442)
- 霍金携手俄罗斯富豪耗资1亿美元寻找外... (4844)
- 如何才能查看PHP内置函数源代码... (1293)
- 微信支付开发当前URL未注册的解决方... (671)
- 《谁为爱情买单》中的经典面试 ... (527)
- 让虚拟主机也用上SVN:适用于个人的... (484)
- 精华博文
- [推荐]Centos7 安装配置 SVN (240)
- easyswoole框架安装 (255)
- php开启pecl的支持(推荐) (250)
- 1-10个恋爱表现:男朋友爱你程度到... (257)
- 女生喜欢你的10个程度,到第六个就可... (225)
- Eclipse 没有Server选项... (297)
- 友情链接
- 我来忙 (110)