index.html 2.0 KB

123456789101112131415161718192021
  1. <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/scm-app/common-assets/img/favicon.ico><title>系统应用-基础信息管理</title><script src="/scm-app/common-assets/js/project.config.js?v=1.3.10"></script><script id=common-script src="/scm-app/common-assets/js/common-scripts.js?v=1.3.10&mode=production"></script><link rel=stylesheet href=/scm-app/common-assets/plugins/jquery-ztree/3.5/css/metroStyle/metroStyle.css><script src=/scm-app/common-assets/plugins/jquery-ztree/3.5/js/jquery.ztree.all.min.js></script><link href=/scm-app/common-assets/css/chunk/chunk-common-1.3.10.css rel=stylesheet></head><body><noscript><strong>抱歉,页面无法在禁用JavaScript时正确展示。请启用JavaScript。</strong></noscript><div id=app></div><script src=/scm-app/common-assets/js/chunk/chunk-common-1.3.10.js></script><script src=/scm-app/common-assets/js/chunk/chunk-vendors-1.3.10.js></script><script src=/scm-app/oauth/oauth-1.3.10.js></script></body><script>/**
  2. *randomWord 产生任意长度随机字母数字组合
  3. * @param randomFlag是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位
  4. * @param min
  5. * @param max
  6. * @returns {string}
  7. */
  8. function randomWord (randomFlag, min, max) {
  9. var str = '',
  10. range = min,
  11. arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
  12. // 随机产生
  13. if (randomFlag) {
  14. range = Math.round(Math.random() * (max - min)) + min
  15. }
  16. for (var i = 0; i < range; i++) {
  17. pos = Math.round(Math.random() * (arr.length - 1))
  18. str += arr[pos]
  19. }
  20. return str
  21. }</script></html>