Testing if jQueryUI has loaded

前端 未结 5 1330
误落风尘
误落风尘 2020-11-29 23:22

I\'m trying to debug a website, and I think that jQueryUI may not have loaded properly. How can I test if jQueryUI has loaded?

5条回答
  •  借酒劲吻你
    2020-11-30 00:00

    You need to check if both, the jQuery UI Library file and CSS Theme are being loaded.

    jQuery UI creates properties on the jQuery object, you could check:

    jQuery.ui
    jQuery.ui.version
    

    To check if the necessary CSS file(s) are loaded, I would recommend you to use Firebug, and look for the theme files on the CSS tab.

    I've seen problems before, when users load correctly the jQuery UI library but the CSS theme is missing.

提交回复
热议问题