ajax基本语法
$.ajax({
    type: "post",  //数据的提交方式(post\get)
    url: "text.php",  //提交的url地址
    data: {name:name,pwd:pwd},//需要提交的数据
    dataType: "json",//返回的数据类型格式
    success: function(msg){      //返回成功的回调函数
    },
    error:function(msg){      //返回失败的回调函数
    }
});php端的接收方法
html端代码text.html
ajaxTest 
php端代码text.php
在text.html中加入以下js代码
上一篇:                        细节决定成败,互联网建设中同样需要细节
                                            
                    下一篇:                        Thinkphp5 验证码使用方法详解
                                            
                关键词:
                        
                    
                    
                )
                            )
)
                    
                    
                    