06 2021 档案
js 获取URL参数
摘要:function getQueryString = (name) => { let reg = new RegExp("(^|/?|&)" + name + "=([^&]*)(&|$)", "i"); let r = decodeURIComponent(location.href).substr
阅读全文
js 获取距离当前时间的 (天数/小时数/分钟数)
摘要:/** * 获取距离当前时间的 (天数/小时数/分钟数) * @param {*} timesData '2018-05-17 16:58:00' * @returns */ function timesDiff(timesData) { var dateBegin = new Date();//获
阅读全文
浙公网安备 33010602011771号