easyUI中datagrid 将 text 设为不可编辑 在 easyUI 的 datagrid 中, 有editor 为 text 的一个字段{field:'price',title:'价格',width:80,editor:'text'} 如何设置这个 text 不能编辑(disabled=true) ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $.extend($.fn.datagrid.defaults.editors, { text: { init: function(container, options){ var input = $('<input type="text" class="datagrid-editable-input">').appendTo(container); return input; }, getValue: function(target){ return $(target).val(); }, setValue: function(target, value){ $(target).val(value); }, resize: function(target, width){ var input = $(target); if ($.boxModel == true){ input.width(width - (input.outerWidth() - input.width())); } else { input.width(width); } } }});去研究下 ~~~~~~~~~ js中文本框中弹出框定位问题 按钮在FF,Chrome下点击和回车都没反应,急!急!急! 能控制页眉页脚以及打印纸张大小的免费打印源代码 谁能反编译这一小短代码,分全送! 新手提问框架的问题 添加onclick事件时的问题 高手进啊 有js 高手吗? 看看我这个简单的问题! 求救:请问下面俩个函数的参数是什么意思, 关于背景图的问题,急!!! javascript 数组问题 IE7/IE8 通过window.open()方法弹出一个窗口时,怎么去除那个被弹出窗口标题url
$.extend($.fn.datagrid.defaults.editors, {
text: {
init: function(container, options){
var input = $('<input type="text" class="datagrid-editable-input">').appendTo(container);
return input;
},
getValue: function(target){
return $(target).val();
},
setValue: function(target, value){
$(target).val(value);
},
resize: function(target, width){
var input = $(target);
if ($.boxModel == true){
input.width(width - (input.outerWidth() - input.width()));
} else {
input.width(width);
}
}
}
});去研究下 ~~~~~~~~~