1.一个参数

web api中get参数传递

web api中get参数传递

2.多个参数

web api中get参数传递

web api中get参数传递

3.一个实体对象

var url = ServerIp + '/api/food/foodsupply';
var ajaxTimeoutTest=$.ajax({
type: "Get",
timeout: 10000,
url: url,
data: {
page: thepage,
order_number: $('#search').val(),
create_user:dept_name,
beginDate: begin_date,
endDate: end_date,
user_id: localStorage.getItem("userId"),
user_name: localStorage.getItem("realName")
},

[HttpGet]
[Route("foodsupply")]
public IHttpActionResult GetRoomItemList(int? page, int? pageSize, [FromUri]MarkingItemModel model)

相关文章:

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