随笔分类 -  JS

摘要:https://developer.mozilla.org/zh-CN/docs/Web/API/Document/readyState 阅读全文
posted @ 2020-06-29 00:06 TTtttt5 阅读(87) 评论(0) 推荐(0)
摘要:screen:屏幕。这一类bai取到的是关于屏幕的宽度du和距离,与浏览器无关,zhi应该是获取window对象的属性。client:使用区、dao客户区。指的是客户区,当然是指浏览器区域。offset:偏移。指的是目标甲相对目标乙的距离。scroll:卷轴、卷动。指的是包含滚动条的的属性。inne 阅读全文
posted @ 2020-06-29 00:01 TTtttt5 阅读(406) 评论(0) 推荐(0)
摘要:else if (element.className) {// a b c => .a.b.c return "." + element.className.split(' ').filter(item => !!item).join('.'); 阅读全文
posted @ 2020-06-28 23:51 TTtttt5 阅读(86) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/sendBeacon https://blog.csdn.net/hsl0530hsl/article/details/88579958 阅读全文
posted @ 2020-06-28 21:33 TTtttt5 阅读(140) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/ziyunfei/p/5545439.html 阅读全文
posted @ 2020-06-28 20:30 TTtttt5 阅读(129) 评论(0) 推荐(0)
摘要:mid=(left+right)>>1的含义 右移运算符>>,运算结果正好能对应一个整数的二分之一值,这就正好能代替数学上的除2运算,但是比除2运算要快。 mid=(left+right)>>1相当于mid=(left+right)/2 阅读全文
posted @ 2020-06-25 23:18 TTtttt5 阅读(939) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/lxcao/article/details/52728246 阅读全文
posted @ 2020-06-23 17:22 TTtttt5 阅读(108) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_30577801/article/details/102246577 https://www.cnblogs.com/luwei-web/p/10275400.html 阅读全文
posted @ 2020-06-09 10:39 TTtttt5 阅读(239) 评论(0) 推荐(0)
摘要:export function ensureAppTimeouts(timeouts = {}) { return { ...DEFAULT_TIMEOUTS, ...timeouts } return Object.assign({},DEFAULT_TIMEOUTS,timeouts) } 阅读全文
posted @ 2020-06-05 22:03 TTtttt5 阅读(801) 评论(0) 推荐(0)
摘要:export function registerApplication(loadFunction) { if (typeof loadFunction !== "function") { loadFunction = () => Promise.resolve(loadFunction); } } 阅读全文
posted @ 2020-06-05 18:11 TTtttt5 阅读(137) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/jiasm/p/9482443.html 阅读全文
posted @ 2020-06-05 15:21 TTtttt5 阅读(93) 评论(0) 推荐(0)
摘要:可以看到文件自带的属性有个slice切片功能 //下载功能 let str='xxxx' const blob =new Blob([str],{ type:'text/html' }) const a = document.createElement('a') a.setAttribute('do 阅读全文
posted @ 2020-06-05 09:58 TTtttt5 阅读(624) 评论(0) 推荐(0)
摘要:用md5处理文件名。引入md5 将文件处理成base64 驼峰命名处理 function cached(fn) { const cache = Object.create(null); return function cachedFn(str) { const hit = cache[str]; r 阅读全文
posted @ 2020-06-04 22:05 TTtttt5 阅读(134) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/leiting/p/11203383.html 阅读全文
posted @ 2020-05-31 20:39 TTtttt5 阅读(119) 评论(0) 推荐(0)
摘要:http://www.ruanyifeng.com/blog/2019/08/web_components.html 阅读全文
posted @ 2020-05-31 19:02 TTtttt5 阅读(113) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest/onreadystatechange 阅读全文
posted @ 2020-05-22 21:15 TTtttt5 阅读(269) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest/responseType 阅读全文
posted @ 2020-05-22 21:06 TTtttt5 阅读(183) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_34629352/article/details/78959707 阅读全文
posted @ 2020-05-21 23:35 TTtttt5 阅读(115) 评论(0) 推荐(0)