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

浙公网安备 33010602011771号