日期:2014-05-16 浏览次数:20406 次
Quote: 引用: wiki摘抄的,我没验证过,如果你没有试过的话,可以试一试 colModel: [ ... {name:'price', ..., editrules:{custom:true, custom_func:mypricecheck....}, editable:true }, ... ] ··· function mypricecheck(value, colname) { if (value < 0 ------解决方案-------------------- value >20) return [false,"Please enter value between 0 and 20"]; else return [true,""]; } custom_func:mypricecheck.... 这“点点点”是什么 还能这么调用的额?
wiki摘抄的,我没验证过,如果你没有试过的话,可以试一试 colModel: [ ... {name:'price', ..., editrules:{custom:true, custom_func:mypricecheck....}, editable:true }, ... ] ··· function mypricecheck(value, colname) { if (value < 0 ------解决方案-------------------- value >20) return [false,"Please enter value between 0 and 20"]; else return [true,""]; }