Ajax 请求

Ajax 请求

 

$.ajax({
    url: "{php echo $this->createWebUrl($filename, array('op' => 'display'))}",
    data: {id: id, sort: sort},
    dataType: "json",
    success: function (data) {
        console.log(data);
        if (data.code == 1) {
            console.log('Success');
        } else {
            console.log("Error");
        }
    }
});

 

 
posted @ 2019-11-01 09:22  GetcharZp  阅读(169)  评论(2编辑  收藏  举报