在。
function app_edit(obj){
url=$(obj).attr('edit_url')
console.log(url)
$.ajax({
type:'GET',
url:url,
dataType:'json',
success:function(){
},
error:function (data) {
layer.msg('跳转失败',{icon:5,time:1000});
}
})
}控制器里面: public function edit($id)
{
// return $id;
return $this->fetch('edit');
}结果没办法实现跳转。内容全部以html代码返回。请问怎么实现页面跳转?
最佳答案