songyue
author model 内实现
- songyue 2018-02-06 已签到连续签到1天,获得了5个金钱
大神,菜单管理,添加和修改都不能改父分类,也就是都只是一级分类,显示有js报错,看不懂
jquery.js:9984 Uncaught TypeError: elem.getClientRects is not a functionat jQuery.fn.init.offset (http://admin.adminlte.com/assets/131d800a/jquery.js:9984:14) at Object.getWithinInfo (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:971:26) at jQuery.fn.init.$.fn.position (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:993:23) at $.(anonymous function).(anonymous function)._suggest (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:2494:6) at $.(anonymous function).(anonymous function)._suggest (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:415:25) at $.(anonymous function).(anonymous function).__response (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:2438:9) at $.(anonymous function).(anonymous function).__response (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:415:25) at $.(anonymous function).(anonymous function)._superApply (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:405:36) at $.(anonymous function).(anonymous function).__response (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:2592:8) at $.(anonymous function).(anonymous function).__response (http://admin.adminlte.com/assets/2af2b8ea/jquery-ui.js:415:25)
我也遇到这个问题了,是因为Jquery UI 1.11.4 and jquery 3.0 的版本兼容问题,我修复的方案是复制了一个 v2.2.4的jquery替换了3.0的版本
'components' => [ 'assetManager' => [ 'assetMap' => [ 'jquery.js' => '@web/js/jquery/jquery.js', // jquery v3.2.1 和 jQuery UI 1.11.4 版本冲突 @https://stackoverflow.com/questions/37914869/jquery-ui-error-f-getclientrects-is-not-a-function 'jquery.min.js' => '@web/js/jquery/jquery.js', ],