首页 > Web开发 > 详细

ajax url地址

时间:2017-06-04 17:51:13      阅读:223      评论:0      收藏:0      [点我收藏+]

 

当前网址

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地址

原文:http://www.cnblogs.com/linsx/p/6941091.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!