1
根据documentation of X-editable,有一个template
属性。它允许指定使用的输入元素,如textarea。但它似乎被我的应用程序忽略。所以,我想一个简单的例子,像文档:X-editable中的自定义模板被忽略
<a href="#" id="test"></a>
由这家名为JS
$('#test').editable({
template: '<textarea rows="1"></textarea>'
});
我得到的x可编辑的,但基本的一个,其内部有一个输入元素:
<input type="text" class="form-control input-sm" style="padding-right: 24px;">
找不到任何信息我在做什么错在这里。使用最新版本v1.5.1。