trAll.find('a.editableA').editable('toggleDisabled'); // 开关行内编辑效果
trAll.find('a.editableA[key!="roleName"]').editable({
type : 'select', // 使用select方式
source : [ {
value : 'trueVal', // 注意:不能写js关键字如:true或者false,否则点击后的弹窗中出现空白选项
text : 'true'
}, {
value : 'falseVal',
text : 'false'
} ]
});
'<a href="javascript:void(0);" class="editableA" key ="'
+ data.key
+ '" data-value="'
+ data.value
+ 'Val">' + data.value + '</a>'; // 和select方式配合使用,初始化必须,不能为js关键字