Blogger Information
Blog 34
fans 0
comment 0
visits 28436
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php416数据请求验证
1A7498的博客
Original
1011 people have browsed it
$('#email').blur(function(){

			$.post('check.php', 'email='+$('#email').val(), function(data){
			       //'url数据处理地址','data发送的数据',huitiao回调执行函数,'json格式返回'
			       //下面是回调执行函数
				switch(data.status) {
					case 0:
					$('td').find('span').remove()
					$('#email').after('<span>').next().text(data.msg).css('color', 'red').prev().focus();
					break;
					case 1:
					$('td').find('span').remove()
					$('#email').after('<span>').next().text(data.msg).css('color', 'red').prev().focus();
					break;
					case 2:
					$('td').find('span').remove()
					$('#email').after('<span>').next().text(data.msg).css('color', 'green')
					break;
				}
				
			},'json')
		})
Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
  • 2018-03-16 11:39:01