js调用方法:

$.getJSON("http://www.wofuwang.com/show-1/?callback=?", function (data) {

}

MVC C#代码:

string callback = Request.QueryString["callback"];

return Content(string.Format("{0}({1})", callback, Model, "text/plain", System.Text.Encoding.UTF8));

相关文章:

  • 2022-12-23
  • 2021-06-10
  • 2021-08-04
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-12-10
  • 2021-12-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-07-27
相关资源
相似解决方案