猿问

js $.post 传值control一个值接收不了

var param = {
        qq: qq,
        wang: wang,
        money: money,
        nodes:nodes,
    };


$.post("index.php?action=adduser", param, function(res) {
        if(res.status == 'ok') {
            $('#msgs').html(res.msg);
            window.location = gourl;
        } else {
            $('#msgs').html(res.msg);
        }
    }, "json");

后台直接var_dump($_POST); 

qq, wang, money正常接收
但是nodes为空

js alert(nodes);是有值的.格式为 1,2,3

想知道都什么原因不行的?

侃侃无极
浏览 498回答 2
2回答

有只小跳蛙

已经解决了,把nodes转为了字符串 ndoes = String(nodes);

森栏

用什麼型別接的參數
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答