- // Returns jQuery UI version (ex: 1.8.2) or undefined
- $.ui.version
- // Alternatively
- jQuery.ui.version
- if($.ui.version){
- // jQuery UI is loaded
- }
- // Checking if jQuery UI is loaded or not
- if($.ui){
- // jQuery UI is loaded
- }else {
- // jQuery UI is not loaded
- }
- //该片段来自于http://www.codesnippet.cn/detail/250420133012.html
来源: http://www.codesnippet.cn/detail/250420133012.html