我不确定如何从 click() 事件加载视图。我不想要部分视图,我需要能够为其提供一个简单的参数:
$('#DepartmentsButton').click(function () {
onDepartmentClick();
});
function onDepartmentClick() {
var self = this;
var selectedId = gridGetSelectedId();
$.ajax({
url: '/Location/Departments/',
cache: false,
type: 'get',
data: { id: parseInt(selectedId) },
datatype: 'json',
success: function (data) {
},
error: function (res) {
}
});