似乎CKFinder 3.3(对于PHP)与jQuery 3.0或3.1不兼容。每当我试着和这两个版本的加载CKFinder,我得到这两个错误,CKFinder不会加载:使用jQuery 3.x运行时发现CKFinder错误
[Error] TypeError: undefined is not an object (evaluating 'a.event.props.concat')
(anonymous function) (jquery.mobile.js:4:5781)
(anonymous function) (jquery.mobile.js:4:6334)
(anonymous function) (jquery.mobile.js:3:115)
global code (jquery.mobile.js:3:130)
[Error] TypeError: undefined is not an object (evaluating 't.event.special.swipe.start')
init — ckfinder.js:3373
(anonymous function) — ckfinder.js:14863:116
execCb — ckfinder.js:715
check — ckfinder.js:510
enable — ckfinder.js:589
init — ckfinder.js:482:172
(anonymous function) — ckfinder.js:648:99
check (ckfinder.js:5:21940)
enable (ckfinder.js:5:24481)
init (ckfinder.js:5:20742)
(anonymous function) (ckfinder.js:5:26286)
如果我恢复到jQuery的1.12.3(没有其他变化),它工作正常。
其中一个错误发生在jQuery手机中,所以它可能是一个问题,但是,这是最新版本(1.4.5),我还没有发现任何关于jQuery mobile和jQuery 3之间不兼容的报告。我也尝试过使用jQuery迁移插件,但这并没有帮助。
我可以通过告诉CKFinder使用jQuery 1.12来处理这个问题,而它所嵌入的页面使用3.1,但是,显然不适合加载两个jQuery副本。
试试jquery为它迁移。 'https:// code.jquery.com/jquery-migrate-3.0.0.js' –
正如我所说的那样,我试过了,它没有帮助。 – Synchro