【发布时间】:2015-11-26 14:56:40
【问题描述】:
我试图找到解决方案,但没有成功。
我正在尝试使用“日期时间”类型运行 X-editable 来为用户提供日期时间选择器。 Bootstrap DateTimePicker 与同一页面上的其他元素配合良好,因此 DTP 没有问题。
尽管选择了 'data-*' 的方式或通过 JS 推送所有内容,但我总是遇到错误
Uncaught TypeError: Cannot read property 'parseFormat' of undefineda.extend.initPicker
@ bootstrap-editable.min.js:7b
@ bootstrap-editable.min.js:7a.fn.editableutils.createInput
@ bootstrap-editable.min.js:5b.init
@ bootstrap-editable.min.js:5b
@ bootstrap-editable.min.js:5(anonymous function)
@ bootstrap-editable.min.js:5n.extend.each
@ jquery.js:374n.fn.n.each
@ jquery.js:139a.fn.editable
@ bootstrap-editable.min.js:5(anonymous function)
@ panel:1016j
@ jquery.js:3099k.fireWith
@ jquery.js:3211n.extend.ready
@ jquery.js:3417I @ jquery.js:3433
当我从 min 更改为普通 JS 时,我跟踪到:
this.parsedFormat = this.dpg.parseFormat(this.options.format, this.options.formatType);
我不知道如何解决它。 我什至从 x-editable docs 复制了整个示例,因为我担心它是拼写错误,但事实并非如此。
有什么想法吗?
【问题讨论】:
标签: jquery twitter-bootstrap datetimepicker x-editable bootstrap-datetimepicker