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