Do I need to include jQuery core alongside jQuery mobile?

后端 未结 2 1125
野的像风
野的像风 2021-01-17 07:42

Is it necessary to include the core of jQuery, or is the mobile framework sufficient alone? From what I`ve tried, I concluded that both files are necessary, but I would like

2条回答
  •  一生所求
    2021-01-17 07:43

    The docs give you all the information you need to know:

    A jQuery Mobile site must start with an HTML5 'doctype' to take full advantage of all of the framework's features. (Older devices with browsers that don't understand HTML5 will safely ignore the 'doctype' and various custom attributes.) In the 'head', references to jQuery, jQuery Mobile and the mobile theme CSS are all required to start things off.

    In short, yes, jQuery core is required.

提交回复
热议问题