1. 程式人生 > >ajax請求傳遞資料

ajax請求傳遞資料

$.ajax({
url : '${webroot}/pro_ExpertManager!getExpertSpecByBM.action',
type : 'POST',
dataType : 'JSON',
data : {
'expertSpec.zybm' : node.id
},
success : function(result) {
$('#dg-spec-' + saveType).datagrid('appendRow', {
zybm : result.zybm,
yjzy : result.yjzy,
ejzy : result.ejzy,
sanjzy : result.sanjzy,
sijzy : result.sijzy,

wjzy : result.wjzy
});
}
});