例如:因此,我需要用参数(a, b) => a + b和7调用函数5。但是,我不想使用arr[0](...arr.slice(1)),而是想使用Function.prototype.apply和Function.prototype.call (如果需要的话也可以使用Function.prototype.bind此外,我不允许修改arr或它的属性,也不允许在某个地方存储任何其他数据(比如某个全局对象的属性,等等)。这可能吗?我的尝试
在下面的示例中,values是file-2.js中的普通对象吗?// file-1.js FOO,} from '~/my-values';
import * as values from '~是因为我想使用类似于values.hasOwnProperty('FOO')的内容,而rollup引发了以下错误:
'hasOwnProperty' is no