摘要:
1, var now = timestamp = Date.parse(new Date()) / 1000; console.log(now);输出: 1593856981 阅读全文
摘要:
1, background-image: linear-gradient(45deg, red, yellow, blue); 阅读全文
摘要:
1, var str="Hello world!" document.write(str.charAt(1)) e 2, 阅读全文
摘要:
全局查找字符串正则 window.workspace = 'D:/EsunOPUP/'; var UpFolder = 'OPSC/'; var OssPath = 'OPCloudC'; //此处后面不能加斜杠 // var OssPathReg = /OPCloudC\//g; // var O 阅读全文
摘要:
1,CSS样式: .progress { margin-top: 2px; width: 200px; height: 14px; margin-bottom: 10px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px 阅读全文
摘要:
1,刷新页面 //刷新页面 //默认为 false,从客户端缓存里取当前页。true, 则以 GET 方式,从服务端取最新的页面 window.location.reload(true); 阅读全文
摘要:
1,获取后缀名 //得到后缀名 function get_suffix(filename) { pos = filename.lastIndexOf('.'); suffix = ''; if (pos != -1) { suffix = filename.substring(pos); } ret 阅读全文
摘要:
1, //生成自动名 function random_string(len) { len = len || 32; var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; var maxPos = chars.length; v 阅读全文