标签:
最近的一个项目用到了dwz和mvc的整合开发,但是dwz中的lookup查找带回功能对name标签进行了绑架,导致向后台传值不好处理,现在为标签 单独设置一个属性bringbackname来进行带回的关联
dwz.min.js
var $input=$(this),inputName=$input.attr("bringbackname");
二、2861行,为th新增属性
bringbackname: $th.attr("bringbackname") || "",
bname = $this.attr('bringbackname'); if (bname) $this.attr('bringbackname', bname.replaceSuffix(i));
suggestFrag='autocomplete="off" lookupGroup="'+field.lookupGroup+'"'+suffixFrag+' suggestUrl="'+field.suggestUrl+'" suggestFields="'+field.suggestFields+'"'+' postField="'+field.postField+'"';} html='<input type="hidden" name="'+field.lookupGroup+'.'+field.lookupPk+suffix+'"/>'+'<input type="text" name="'+field.name+'"'+ 'bringbackname="'+field.bringbackname+'"'+suggestFrag+' lookupPk="'+field.lookupPk+'" size="'+field.size+'" class="'+field.fieldClass+'"/>'+'<a class="btnLook" href="'+field.lookupUrl+'" lookupGroup="'+field.lookupGroup+'" '+suggestFrag+' lookupPk="'+field.lookupPk+'" title="查找带回">查找带回</a>';
标签:
原文地址:http://blog.csdn.net/u014761013/article/details/44920295