美文网首页
JQuery使用AJAX

JQuery使用AJAX

作者: RageYourDream_ | 来源:发表于2017-03-09 19:27 被阅读0次
$.ajax({
            url: nodeTreeUrl+"?authkey="+authkey+"&secret="+secret,
            dataType: 'json',
            cache: false,
            success: function(data) {
                this.setState({data: data});
                console.log(data);
            }.bind(this),
            error: function(xhr, status, err) {
                console.error(nodeTreeUrl, status, err.toString());
            }.bind(this)
        });

相关文章

网友评论

      本文标题:JQuery使用AJAX

      本文链接:https://www.haomeiwen.com/subject/njdggttx.html