ajax url地址

 

当前网址

http://localhost:8080/exam_paper/402881ec5c3924ec015c394ee4210000/set_questions

ajax请求url

var url = "exam_questions/json?type=" + type ;

请求之后的网址

http://localhost:8080/exam_paper/402881ec5c3924ec015c394ee4210000/exam_questions/json?type=2

 

正确的请求网址是

 http://localhost:8080/exam_questions/json?type=2

正确的ajax请求url

var url = "../../exam_questions/json?type=" + type ;

 

posted @ 2017-06-04 17:09  boyanh  阅读(987)  评论(0编辑  收藏  举报