123456789101112131415161718192021 |
- <!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>/**
- *randomWord 产生任意长度随机字母数字组合
- * @param randomFlag是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位
- * @param min
- * @param max
- * @returns {string}
- */
- function randomWord (randomFlag, min, max) {
- var str = '',
- range = min,
- 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']
- // 随机产生
- if (randomFlag) {
- range = Math.round(Math.random() * (max - min)) + min
- }
- for (var i = 0; i < range; i++) {
- pos = Math.round(Math.random() * (arr.length - 1))
- str += arr[pos]
- }
- return str
- }</script></html>
|