热搜:NVER node 开发 php

怎么把值传给php

2024-09-19 12:50:01
怎么把值传给php

234567891011121314151617	$.getJSON("http://passport.aedu.cn/api/getlogin?callback=?", { uid: encodeURI(userName.val()), pwd: encodeURI(userPwd.val()) }, function (data) {                         if (data.status == 0) {            //成功                                 $("li").hide();                $("#h").hide();                $("#div1").show();                $("#div2").show();                                      //window.location.href = "login.php";                               $("#a").html(data.msg.UserName);                               $("#b").html(data.msg.BlogAddress);            


从jq 里json 取得值,怎么才能传递给php,在线等


回复讨论(解决方案)

你就不能用curl解析http://passport.aedu.cn/api/getlogin?callback=
然后用json_decode()处理吗?

怎么传给php? 是的可以用楼上的方法直接解决 
如果非得用get  那么再取得值后再来个json get 不就好了...