- post method
var arr=["a","b"]
$.ajax({
type: "post",
url: "../workgroup/GetMapListByView_Monitor_RealtimeInfoOfAll",
tanditional:true,
data:{arr:arr},
success: function(data) {
console.log(data)
}
});
[HttpPost]
public List<object> Get(string[] arr) {
}
- get method
$.ajax({
type: "get",
url: "../workgroup/GetMapListByView_Monitor_RealtimeInfoOfAll",
tanditional:true,
data:{arr:arr},
success: function(data) {
console.log(data)
}
});
[HttpGet]
public List<object> Get([FromUri]string[] arr) {
}