简单教程
提交运行
代码编辑器:
<script> var myObject, myArray; function myFunction(a, b) { return a * b; } myArray = [10, 2] myObject = myFunction.apply(myObject, myArray); // 返回 20 document.write(myObject); </script>
运行结果: