技术碎片
技术记录
帮助交流
hot
处理ajax url问题

一般使用

$.ajax({

    type:'post',

    url:"{:url('index/user')}"//来访问url地址

    data:{test:test,test1:test1},

    success:function(res){

        alert("成功")

    }

})



如不能解析


使用'/index.php/index/index/test'相对路径来访问

转载请注明来源地址:www.zhyunxuan.com 更新时间 2021-09-30  1792
梦想有多远,路就有多远