87,918
社区成员
发帖
与我相关
我的任务
分享
$.ajax({
type: 'post',
url: "http://www.36ve.com/xiaomi/index.php/user/login",
async:true,
//cache:false,
//contenttype: "application/json; charset=utf-8",
data:"username="+jQuery("input[name='username']").val()+"&password="+jQuery("input[name='userpassword']").val(),
//timeout:20000,
dataType: 'json',
success: function(json)
{
var obj = eval( "(" + json + ")" );//转换后的JSON对象
alert(obj);
},
error:function(error){
alert("22")
}
});