ajax请求方式为:
<script type="text/javascript">var BASE_PATH = '[[${#httpServletRequest.getContextPath()}]]';</script>
function PdfFint(){ console.log(BASE_PATH); console.log(BASE_PATH+"manage/pdf/exportpdf"); $.ajax({ url:BASE_PATH+'/manage/pdf/exportpdf', data:{"PlayerId":1,"TeamPlayer":1}, type:'post', success:function(data){ layerMessage("PDF文档生成成功"); } }); }
请大神解答,应如何解决,并如如何实现请求后台,谢谢!
qq_笑_17