代码如下:

   import com.alibaba.fastjson.JSONPObject; 

  @RequestMapping(value = "/method1") @ResponseBody public JSONPObject method1(Req req,String callback) { JSONPObject returnJsonp = new JSONPObject(callback); try { Object obj = "hello"; returnJsonp.addParameter(obj); } catch (Exception e) { } return returnJsonp; }

 

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-11-11
  • 2022-02-09
  • 2022-02-09
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-02-09
  • 2022-02-09
  • 2021-12-07
相关资源
相似解决方案