前台
$.ajax({
url: "/Roster/GetNamePY",
type: "post",
data: {
PY: $("#Name").combobox('getValue')
},
dataType: "json",
success: function (data) {
$("#Name").combobox("loadData", data)
},
error: function (xml, text, msg) {
error.apply(this, arguments);
}
});
后台除了在方法内string namePY = Request["PY"];
怎么在括号里获取参数,
public JsonResult GetNamePY()
{
}