| 
/** 
 | 
 * 加载后台运行时支持的css样式和js脚本 
 | 
 * by 姜友瑶 
 | 
 * 2015-12-1 
 | 
 */ 
 | 
function getRootPath() { 
 | 
    var curWwwPath = window.document.location.href; 
 | 
  
 | 
    var pathName = window.document.location.pathname; 
 | 
  
 | 
    var url=curWwwPath.substring(0, curWwwPath.indexOf(pathName)); 
 | 
        return url; 
 | 
} 
 | 
/** 全局路径,代表当前网站的根URL */ 
 | 
var basePath = getRootPath(); 
 | 
  
 | 
/******************************************************************************* 
 | 
 * base style and script not change the file order 
 | 
 ******************************************************************************/ 
 | 
document.write(  
 | 
  
 | 
         '<link href="' + basePath + '/css/dingStyle.css" rel="stylesheet"></link>' 
 | 
     
 | 
        + '<script type="text/javascript" src="' + basePath + '/plugin/amazingUI/js/amazeui.min.js" ></script>' 
 | 
         
 | 
        + '<script type="text/javascript" src="' + basePath+ '/plugin/Validform_v5.3.2/Validform_v5.3.2.js"></script>' 
 | 
        + '<link href="' + basePath+ '/plugin/Validform_v5.3.2/style.css" rel="stylesheet"></link>' 
 | 
        + '<link href="' + basePath + '/css/common-style.css" rel="stylesheet"></link>' 
 | 
         
 | 
        + '<link href="' + basePath + '/plugin/select2/select2.min.css" rel="stylesheet" />' 
 | 
        + '    <script src="' + basePath + '/plugin/select2/select2.min.js"></script>' 
 | 
         
 | 
        + '<script type="text/javascript" src="' + basePath + '/plugin/layer_mobile/layer.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/plugin/jquery.query.js"  ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/AjaxProxyForMobile.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/MCommon.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/MUI.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/MForm.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/MValidform.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/Pagination.js" ></script>' 
 | 
        + '<script type="text/javascript" src="' + basePath + '/js/systools/MGrid.js" ></script>'); 
 | 
                 
 |