<script type="text/javascript" src="/js/jquery.min.js"></script> <script type="text/javascript" src="/js/bootstrap.min.js"></script> <script type="text/javascript" src="/js/jquery.bootstrap.min.js"></script> <script type="text/javascript" src="/js/plugins/layer/layer.min.js"></script> <script src="/Scripts/common/zTree/js/jquery.ztree.core.js"></script> <script src="/Scripts/common/zTree/js/jquery.ztree.excheck.js"></script> <script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js"></script> <script type="text/javascript" src="/js/Bootstrap-Select/bootstrap-select.js"></script>
<script src="~/Scripts/common/require.js" data-main="/Scripts/main" data-entry="/Scripts/category/category.js"></script>
require.config({
baseUrl: 'http;//www.cdnxxx.com/',
paths: {
"jquery": "hplus/js/jquery.min",
"bootstrap": "hplus/js/bootstrap.min",
"bootstrapselect": "/Content/Bootstrap-Select/bootstrap-select",
"laydate": "/Scripts/plugins/laydate/laydate",
"utility": "/Scripts/utility"
},
shim: {
'bootstrapselect': {
deps: ['jquery', 'bootstrap']
},
'bootstrap': {
deps: ['jquery']
},
'utility': {
deps: ['jquery'],
exports: 'Utility'
},'laydate': {
exports: 'laydate'
}
}
});
require(['jquery'], function ($) {
var entry = $('[data-entry]').data("entry");
require([entry]);
});
define(['jquery', 'utility', 'bootstrap', 'bootstrapselect'], function ($, Utility) {
var category = {
init: function () {
this.setOptions();
this.bindEvent();
self.getList();
},
setOptions: function () {
this.btnQuery = $("#btnQuery");
this.divList = $("#divList");
},
bindEvent: function () {
var self = this;
self.btnQuery.on("click", function () { self.getList(); });
},
getList: function () {
var self = this;
$.post(self.divList.data("url"), { channelCode: $.trim($("#ddlChannel").val()) }, function (result) {
self.divList.html(result);
});
}
};
$(function () {
category.init();
});
});
define(['jquery'], function ($) {
// some code
});
require.config({
baseUrl: 'http;//www.cdnxxx.com/',
paths: {
"jquery": "hplus/js/jquery.min",
"bootstrap": "hplus/js/bootstrap.min",
"bootstrapselect": "/Content/Bootstrap-Select/bootstrap-select",
"laydate": "/Scripts/plugins/laydate/laydate",
"utility": "/Scripts/utility"
}
});
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有