似乎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