How do I use requireJS and jQuery together?

前端 未结 5 1478
暗喜
暗喜 2020-11-30 16:14

I would like to use requireJS and I am using jQuery. I don\'t want to use the combined version of requireJS and jQuery since I am not using the latest jQuery version. What i

5条回答
  •  鱼传尺愫
    2020-11-30 17:15

    In addition to jhs's answer, see the more recent instructions on the require-jquery github page from the README.md file. It covers both the simplest approach of using a combined jquery/require.js file and also how to use a separate jquery.js.

提交回复
热议问题