在jquery.easyui.min.js中的setText:function(jq,_4d7)上面添加这段代码:
,setBackgroundColor:function(jq, color){
if(color=color==undefined?"textbox-background-green":color){
console.dir('color111:' + color);
$(jq).textbox("textbox").addClass(color);
}
}
如果源码中没有搜索到,则easyui为新版本,在setText:function(jq,_52e)上面添加代码,
然后在业务逻辑中:
$(e.data.target).textbox('setBackgroundColor','textbox-background-red');