掘友等级
获得徽章 0
#每天一个知识点#
call() 和 apply() 的区别?
它们的作用一模一样,区别仅在于传入参数的形式的不同。
apply 接受两个参数,第一个参数指定了函数体内 this 对象的指向,第二个参数为一个带下标的集合,这个集合可以为数组,也可以为类数组,apply 方法把这个集合中的元素作为参数传递给被调用的函数。
call 传入的参数数量不固定,跟 apply 相同的是,第一个参数也是代表函数体内的 this 指向,从第二个参数开始往后,每个参数被依次传入函数。
每日工程师职场英语分享,工作分享常用表达:
takeaway: 外卖;学到的内容,心得
Here’re our key takeaways for today's sharing session.
continuity: 持续性
The Microsoft Phone Link is an app focusing on the cross-device continuity experience.
fragmented: 碎片化的,零星的
The previously fragmented players in the industry are now leading the construction of the ecosystem.
每日工程师职场英语分享,今天分享一些和测试相关的词汇表达:
性能测试: Performance testing
自动化测试: Automated testing
测试框架:Test framework
持续集成: Continuous integration
大规模测试: Mass testing