引入require.js文件
<script src="~/Scripts/libs/require.min.js"></script>
require.config()方法配置参数说明
1.baseUrl,指引入的Js文件的根目录
2.paths,遵循AMD规范
3.shim,不遵循AMD规范
require.config({
baseUrl: "/Scripts/web",
paths: {
jquery: "/Scripts/libs/jquery-1.10.2.min",
jquery_ui: "/Scripts/libs/jquery-ui",
bootstrap: "/Scripts/libs/bootstrap/js/bootstrap.min",
},
shim: {
bootstrap: {
deps: ["jquery"],
exports: "bootstrap"
},
picupload: {
deps: ['jquery', 'bootstrap', 'jquery_jcrop', 'exif', 'lrz', 'formupload'],