選選項的時候去run 下面的
$.ajax({
url: "@Url.Action("GetPersonByGuid", "Utilitis")/" + key,
success: function (data) {
(@success)(data);
}
});
然後js再去接data set數值
function cb_@(ViewData.ModelMetadata.PropertyName)(m, key) {
key = key? key[0]: $("#@keyFieldName").val();
if (!key)
return;
$.ajax({
url: "@Url.Action("GetPersonByGuid", "Utilitis")/" + key,
success: function (data) {
(@success)(data);
}
});
}
棒棒的!!!
歡迎高手低手來看看 指教指教 切磋切磋 教學香腸