How to access Spring MVC model object in javascript file?

前端 未结 8 1076
南方客
南方客 2020-12-28 19:05

I am using spring 3 MVC and i have below classes.

External system would call my application using below URL:

http://somehost/root/param1/param2/param         


        
8条回答
  •  被撕碎了的回忆
    2020-12-28 19:35

    Here is an example of how i made a list object available for javascript:

    var listForJavascript = [];
    
      var arr = [];
    
      arr.push("");
      arr.push("");
    
      listForJavascript.push(arr);
    
    

提交回复
热议问题