![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
哦豁豁豁丶
这个作者很懒,什么都没留下…
展开
-
无限断点模式
!function(){ var _0x1cbb = ["tor", "struc", "call", "ger", "con", "bug", "de", "apply"]; setInterval(check, 2e3); function check() { function doCheck(_0x1834ff) { if (('' + _0x1834ff / _0x1834ff)['length'] !== 0x1原创 2021-12-23 17:48:14 · 151 阅读 · 0 评论 -
js 获取两个时间戳之间相隔多少天多少小时多少分多少秒
<script>function getRemainderTime (startTime){ var s1 = new Date(startTime.replace(/-/g, "/")), s2 = new Date(), runTime = parseInt((s2.getTime() - s1.getTime()) / 1000); var year = Math.floor(runTime / 86400 / 365); runTime = ru转载 2020-11-04 17:16:29 · 2321 阅读 · 0 评论 -
h5 js判断是在安卓还是ios还是微信
var u = navigator.userAgent; //判断是否是ios终端 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //判断是否是android终端 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //判断是否是微信 var ua = window.navigator.userAgent.toLowerCase.原创 2020-07-30 16:40:35 · 368 阅读 · 0 评论 -
js根据时间戳判断刚刚 几分钟前 几小时前
timeFormat(time) { if (time > 0) { var result time = parseInt(time); var minute = 1000 * 60; var hour = minute * 60; var day = hour * 24;原创 2020-07-30 16:33:15 · 946 阅读 · 1 评论 -
js 拿到url 里面的完整参数变转化为Json
var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); for (var i = 0; i < strs原创 2020-07-30 16:32:00 · 394 阅读 · 1 评论 -
时间戳 转时间格式 年月日 时分秒
dataFormatM(time) { var date = new Date(time); var year = date.getFullYear(); var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDa原创 2020-07-30 16:29:40 · 270 阅读 · 0 评论 -
时间判断昨天今天明天后天
timedadasd(data) { // console.log('data===',data); var date = data.toString(); var year = date.substring(0, 4); var month = date.substring(4, 6); var day = date.substring(6, 8); var hour = date.substring(8, 10); var minute = date.substring(原创 2020-07-30 16:27:31 · 609 阅读 · 0 评论 -
git 几行代码合并分支
$ git pull origin develop(你要合并的分支)如果有冲突提示的话.解决完冲突后.$ git add .$ git commit -m '(解决冲突日志说明)' $ git push origin dglDevelop原创 2020-07-30 16:25:16 · 122 阅读 · 0 评论 -
JSON数据去重
1. $ git pull origin master //(要合并的代码分支名)如果没有完全自动合并,有冲突的话,解决完冲突执行下列代码2. $ git add . $ git commit -m "fixed conflicts(解决冲突说明)" $ git git push origin dglDevelop //推到你自己的分支...原创 2020-07-30 16:20:10 · 341 阅读 · 0 评论 -
JS 根据某参数生成伪随机数
MathRondom(seed) { Math.seed = seed; Math.seededRandom = function (max, min) { max = max || 1 //(设置最大值) min = min || 0 //(设置最小值) Math.seed = (Math.seed * 9301 + 49297) % 233280 var rnd = Math.seed / 233280.0原创 2020-07-30 16:15:15 · 279 阅读 · 0 评论 -
JS传入时间格式,判断是否是当天
isNowDate(time) { var date = new Date(time); var year = date.getFullYear(); var month = date.getMonth() var day = date.getDate(); var dateN = new Date(); var yearN = dateN.getFullYear(); var monthN = dateN.getMonth() var dayN = dateN.getDa原创 2020-07-30 16:09:02 · 803 阅读 · 0 评论