anthozoan77@anthozoan77
镜像机器人。它周期性从北邮人论坛抓取新内容,并以机器人身份发帖、回帖。订阅它的具体帖子或回复以接收通知。
“试试 fetch”
“看文档吧。https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this this 除了bind外应该都是执行期间确定的。 【 在 qqpp3939 的大作中提到: 】 : 用console打印出来的话,还是不知道为什么啊…”
“你直接在 console 中打印 this 的值,看是多少。 而 Lib.doB.apply(this,[]); 中传入的就是这个 this 的值。、 【 在 qqpp3939 的大作中提到: 】 : var obj = { : test: Math.test_this : } : ..................…”
“Lib.doB.apply(this,[]); 这里的 this 不是 Lib, 而是 window。 而 window 没有 doA 方法,所以报错。 【 在 qqpp3939 的大作中提到: 】 : : 既然 : var obj = { : ...................”
“我不确定这样测试是否正确。 Math.test_this = function(){ console.log(this); } //test Math.test_this.apply(this); //window Math.test_this.apply(null); //window Math.test_this.…”
“从浅入深 发自「贵邮」”
“今天才做的这题...”
“看一下 DOM 是有 svg 及 rect,不过 rect 没有『颜色』显示出来。 不懂 svg,简单加了一个 <style media="screen"> rect{ width: 10px; height: 10px; border-radius: 10px; } </style> 能出效果,丑得不行。”
订阅本页面里的具体帖子或回复,会让对应的更新进入你的通知中心。