1. 程式人生 > >ajax url地址

ajax url地址

host json class b-s type pan cal -s b-

當前網址

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 ;

ajax url地址