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"); } } });