JavaScript 函数的方法
🌙
手机阅读
本文目录结构
函数的方法
- call:将函数作为对象的方法来调用,将参数传递给该方法,在后面this关键字时候详细总结
- apply:将函数作为对象的方法来调用,将参数以数组的形式传递给该方法,在后面this关键字时候详细总结
- toString:返回函数的字符串表示
console.log(test1.toString());
function test1(){
console.log("最开始的调用方法");
}