摘要:
多次调用then,每次res值都是new Promise的值 const promise = new Promise((resolve, reject) => { resolve("hahaha") }) // 1.同一个Promise可以被多次调用then方法 // 当我们的resolve方法被回 阅读全文
posted @ 2022-03-20 19:24
方头小小狮
阅读(423)
评论(0)
推荐(0)
摘要:
视频来源: https://www.bilibili.com/video/BV1Va4y1Y7ME?spm_id_from=333.999.0.0 阅读全文
posted @ 2022-03-20 18:42
方头小小狮
阅读(61)
评论(0)
推荐(0)
摘要:
视频来源: https://www.bilibili.com/video/BV117411i7Ui?from=search&seid=18350214930543149250&spm_id_from=333.337.0.0 阅读全文
posted @ 2022-03-20 18:33
方头小小狮
阅读(37)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2022-03-20 18:25
方头小小狮
阅读(74)
评论(0)
推荐(0)
摘要:
1.显示/隐藏 1 2 3 4 5 6 7 8 9 10 //hide() Object.prototype.hide = function(){ this.style.display="none"; return this; } //show() Object.prototype.show = f 阅读全文
posted @ 2022-03-20 17:26
方头小小狮
阅读(503)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2022-03-20 15:45
方头小小狮
阅读(28)
评论(0)
推荐(0)
摘要:
目标 当前页面需要与当前浏览器已打开的的某个tab页通信,完成某些交互。其中,与当前页面待通信的tab页可以是与当前页面同域(相同的协议、域名和端口),也可以是跨域的。 要实现这个特殊的功能,单单使用HTML5的相关特性是无法完成的,需要有更加巧妙的设计。 畅想 现在我们发现下思维,假设多种场景下的 阅读全文
posted @ 2022-03-20 07:03
方头小小狮
阅读(181)
评论(0)
推荐(1)

浙公网安备 33010602011771号