include.js 3.85 KB
//todo 分解成多个接口,或接受参数的方式,实现加载可配置化,而不是笼统的暴力加载方式,太low

var contextPath = "/pfcms";

document.write("<meta charset='UTF-8'>");
//首先加载样式,保证样式先显示
//样式文件头部
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/css/style.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/css/css.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/easyui/themes/platform/easyui.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/easyui/themes/icon.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/easyui/myPlugins/css/easyui.hp.myAccordion.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/easyui/themes/platform/style-new.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/easyui/themes/platform/style-reset.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/css/jquery.imageUpload.css' />");
document.write("<link rel='stylesheet' type='text/css' href='"+ contextPath +"/js/jquery/css/jquery.fileUpload.css' />");
//样式文件尾部
//js文件头部
document.write("<script src='"+ contextPath +"/js/jquery/jquery-3.1.0.min.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/jquery.easyui.min.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/easyui-lang-zh_CN.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/easyui.default.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.json.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.hp.plugin.js'></script>");
document.write("<script src='"+ contextPath +"/js/My97DatePicker/WdatePicker.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myDialog.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myDatagrid.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myDatebox.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myDatetimebox.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myTabs.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myAccordion.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myTree.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myCombotree.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myForm.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myCombobox.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.myDatetimebox.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/easyui/myPlugins/easyui.hp.multipartImageUpload.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.radioList.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.loadSuccess.js'></script>");
document.write("<script src='"+ contextPath +"/js/global.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.imageUpload.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.fileUpload.js'></script>");
document.write("<script src='"+ contextPath +"/js/jquery/jquery.zclip.js'></script>");