Home >Backend Development >PHP Tutorial >怎么把值传给php

怎么把值传给php

WBOY
WBOYOriginal
2016-06-23 14:17:07677browse

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 不就好了...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn