随笔分类 -  js

摘要:1.call() function say(arg1,arg2){ console.log(this.name,arg1,arg2) } function Person(){ name:'popo' } say.call(Person,'one','two') //结果为popo one two 2 阅读全文
posted @ 2021-10-09 09:48 冰镇汽水 阅读(177) 评论(0) 推荐(0)