题解 | #_call函数#
_call函数
https://www.nowcoder.com/practice/22df1ed71b204a46b00587fdb780b3ab
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> /* 填写样式 */ </style> </head> <body> <!-- 填写标签 --> <script type="text/javascript"> // 填写JavaScript Function.prototype._call = function(context,...args){ context = context || window context.fn = this const result = context.fn(...args) delete context.fn return result } </script> </body> </html>