一、题目
(一) 赛题原文
2024 ICM Problem E: Sustainability of Property Insurance Extreme-weather events are becoming a crisis for property owners and insurers. The world has endured “more than $1 trillion in damages from more than …
文章目录 一、作用二、区别applycallbind小结 三、实现 一、作用
call、apply、bind作用是改变函数执行时的上下文,简而言之就是改变函数运行时的this指向
那么什么情况下需要改变this的指向呢?下面举个例子
var name "lucy";
var obj {n…