代码展示 var obj = { a: 1, b: ‘2’, forEach: function(f1) { f1(1, 2, [1, 2]) } } function f(item, index, array) { console.log(11111111111); console.log(item, index, array); } obj.forEach(f) 下面赋上图片