<a href='{:url("index/index/index")}'>跳转</a>
点右键执行AJAX
$.ajax({
url:'{:url("index/index/index")}',
type:"post",
async:false,
});
php
namespace app\index\controller;
use think\Controller;
class Index extends Controller{
public function index(){
return $this->redirect('http://www.baidu.com');
}
}
为什么<A>标签可以跳转 ajax不能跳转
大神帮帮忙
最佳答案
