${pageContext.request.contextPath}  //   应用名为“demo1” 则得到的是"/demo1"

 

<script>
$(document).ready(function(){
 $.get("${pageContext.request.contextPath}/jsondata",function(data){
  alert(data);
 })
});
</script>

相关文章:

  • 2022-01-01
  • 2021-07-05
  • 2021-11-02
  • 2021-08-05
  • 2021-09-28
  • 2022-12-23
  • 2021-07-26
  • 2021-11-04
猜你喜欢
  • 2021-07-12
  • 2021-12-15
  • 2022-12-23
  • 2021-10-18
  • 2022-02-16
相关资源
相似解决方案