地铁二期项目正式开始

ytsoft.load.js 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. var ytsoft = {};
  2. function GetPath() {
  3. var curWwwPath = window.document.location.href;
  4. //为了便于前端测试,便宜行事的解决方案
  5. if (curWwwPath.indexOf("127.0.0.1")>0) {
  6. var pathName = window.document.location.pathname;
  7. var pos = curWwwPath.indexOf(pathName);
  8. var localhostPaht = curWwwPath.substring(0, pos);
  9. var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
  10. var realPath = localhostPaht + projectName;
  11. return realPath;
  12. }
  13. else {
  14. return '';
  15. }
  16. }
  17. var hostPath = GetPath();
  18. document.write(" <link href=\"" + hostPath + "/css/bootstrap.min14ed.css?v=3.3.6\" rel=\"stylesheet\" type=\"text/css\" />");
  19. document.write(" <link href=\"" + hostPath + "/css/boot/bootstrap-table.css\" rel=\"stylesheet\" type=\"text/css\" />");
  20. document.write(" <link href=\"" + hostPath + "/css/font-awesome.min93e3.css?v=4.4.0\" rel=\"stylesheet\" type=\"text/css\" />");
  21. document.write(" <link href=\"" + hostPath + "/css/animate.min.css\" rel=\"stylesheet\" type=\"text/css\" />");
  22. document.write(" <link href=\"" + hostPath + "/css/style.min862f.css?v=4.1.0\" rel=\"stylesheet\" type=\"text/css\" />");
  23. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/jquery.min.js?v=2.1.4\"></script>");
  24. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/jquery.cookie.js\"></script>");
  25. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/bootstrap.min.js?v=3.3.6\"></script>");
  26. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/bootstrap-table.js\"></script>");
  27. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/bootstrap-table-zh-CN.js\"></script>");
  28. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/css/layer/layer.js\"></script>");
  29. document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/Script/Common/huayi.http.js\"></script>");