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