easyui form.load使用方法
作者:張勇波
博主發(fā)表的文章,有的是自己原創(chuàng),有的是這些年本人從網(wǎng)上積累的,方便大家學(xué)習(xí)。
使用easyui form.load使用方法獲取json返回?cái)?shù)據(jù)后可能還有其它的操作需要json數(shù)據(jù),可以這樣。
- //$('#task_form_edit').form('load','${request.contextPath}/task/detailstTask?taskID=' + tidnum);
- $.getJSON('${request.contextPath}/task/detailstTask?taskID=' + tidnum,function (json) {
- console.log(json);
- $('#task_form_edit').form('load', json);
- $('#task_form_edit').form({
- onLoadSuccess: function (data) {
- ……
- }
- });
- });
【本文是51CTO專欄作者張勇波的原創(chuàng)文章,轉(zhuǎn)載請(qǐng)通過(guò)51CTO獲取作者授權(quán)】
責(zé)任編輯:武曉燕
來(lái)源:
上下求索的Z先生博客