我使用 x-editable 作为内联编辑器http://vitalets.github.io/x-editable/docs.html
我想通过其他链接切换内联表单:
$("#how").click(function(e) {
  e.stopPropagation()
  e.preventDefault()
  $("#com").editable({
    'toggle',
    validate: function(value) {
      if($.trim(value) == '') {
        return 'The content can not be blank!';
      }
    }
  })
})
但它不起作用,我想知道如何同时传递切换和验证选项。