importJsUtil.js 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. (function() {
  2. var pathname = window.location.pathname;
  3. pathname = pathname.substring(0, pathname.substring(1).indexOf('/') + 1);
  4. // 上下文路径
  5. var http_path = window.location.protocol + "//" + window.location.host
  6. + pathname + "/";
  7. // 框架必需
  8. document.write('<script type="text/javascript" src="' + http_path
  9. + 'scripts/qui/libs/js/main.js"></script>');
  10. document.write('<script type="text/javascript" src="' + http_path
  11. + 'scripts/qui/libs/js/jquery.js"></script> ');
  12. document.write('<script type="text/javascript" src="' + http_path
  13. + 'scripts/qui/libs/js/language/cn.js"></script>');
  14. document.write('<script type="text/javascript" src="' + http_path
  15. + 'scripts/qui/libs/js/framework.js"></script>');
  16. document
  17. .write('<link href="'
  18. + http_path
  19. + 'scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>');
  20. document.write('<link rel="stylesheet" type="text/css" id="skin" prePath="'
  21. + http_path + 'scripts/qui/" scrollerY="false"/>');
  22. document.write('<link rel="stylesheet" type="text/css" id="customSkin"/>');
  23. // 树组件
  24. document.write('<link rel="stylesheet" type="text/css" href="' + http_path
  25. + 'scripts/qui/libs/js/tree/ztree/ztree.css" />');
  26. document.write('<script type="text/javascript" src="' + http_path
  27. + 'scripts/qui/libs/js/tree/ztree/ztree.js"></script>');
  28. document.write('<script type="text/javascript" src="' + http_path
  29. + 'scripts/qui/libs/js/form/selectTree.js"></script> ');
  30. document.write('<script type="text/javascript" src="' + http_path
  31. + 'scripts/qui/libs/js/form/listerTree.js"></script>');
  32. })();