使用requirejs2的垫片,有一种方法来告诉要求一个模块已经加载?
例:
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="undescrore.js"></script> <script type="text/javascript" src="require.js'"></script> <script type="text/javascript"> require.config({ paths: { "backbone": '/vendor/js/backbone-min.js' },shim: { 'backbone': { //These script dependencies should be loaded before loading //backbone.js deps: ['underscore','jquery'],// here I would like to load the already loaded library } } }); </script>