x-editable使用技巧

  1. 自动适应元素大小
 2. 当值为空时显示的text,默认为empty

$.editable({
emptytext:'自定义值'
})

3. 启用/禁用交替

$.editable('toggleDisabled')