PHP头条
热点:

如何把值传给php


怎么把值传给php


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

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

www.phpzy.comtrue/phprm/8701.htmlTechArticle如何把值传给php 怎么把值传给php 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 $.getJSON("http://passport.aedu.cn/api/getlogin?callback=?",{uid:encodeURI(userName.val()),pwd:encodeURI(userPwd.val())},function(data){ if(data.status==0){...

相关文章

相关频道:

PHP之友评论

今天推荐