ajax使用不同namespace的action的方法


ajax 如何使用不同namespace的action

如我的question_save在/question命名空间,那我ajax的url写成:"../question/question_save.aciton"

若我把aciton映射为了html,那一定要写成

ajax的url: "../question/question_save.html"

这是我的教训啊,很深很深的教训啊,特别是总是出现ajax 如何使用不同namespace的action

和the requested resource is not available.


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3