一个完整的ajax登陆实例

http://www.iiwnet.com/php_base/626.html

jquery ajax简便使用方法

get方法:

$.get($url,{uid:123456789,v:100}, function (data) {    

              alert(data);

                },"json");

post方法:

$.post($url,{uid:123456789,v:100}, function (data) {    

              alert(data);

                },"json");

//技巧:

my_data=escape(my_data)+"";//编码,防止汉字乱码

原文地址:https://www.cnblogs.com/xiongwei89/p/2968587.html