相关文章推荐
霸气的沙滩裤  ·  Merge request ...·  2 月前    · 
文雅的领结  ·  使用Android ...·  2 年前    · 
犯傻的葡萄  ·  opencv python imread ...·  3 年前    · 
初始内容
2、callback使用
初始内容
注意:回调函数在load填充完数据了之后执行

项目代码实例:

function loadLastInfo(detail){
    $('#myform').form('load', { // 调用load方法把所选中的数据load到表单中,非常方便
        customerCommisonType : detail.customerCommisonType,
        customerCommison : detail.customerCommison,
        otherPay : detail.otherPay,
        otherPay01 : detail.otherPay01,
        otherPay02 : detail.otherPay02,
        otherPay03 : detail.otherPay03,
        otherPay04 : detail.otherPay04,
        otherPay05 : detail.otherPay05,
        otherPay06 : detail.otherPay06,
        otherPay07 : detail.otherPay07,
        otherPay08 : detail.otherPay08,
        otherPay09 : detail.otherPay09,
        otherPay10 : detail.otherPay10,
        otherPay11 : detail.otherPay11,
        otherPay12 : detail.otherPay12,
        isAudit : detail.audit,
        isPriority : detail.isPriority,
        remarks : detail.remarks