我正面临插件jQuery选择性的问题,以根据itemRemove((函数内的条件隐藏删除图标。
https://github.com/thecreation/jquery-selactive
itemRemove: function() {
return <span class="${this.namespace}-remove">x</span>;
},
如果有人对此插件有任何了解。
我通过将其传递到以下函数中的数据将其修复,我没有注意到此函数是从项目函数中调用的:
项目:功能项目(数据({ 返回' n
' this.options.tpl.itemremove.call(this, data ( ' n
'; },