遇到一段这样的代码functionrequire(id){.....}functionother(){...}vark='plus';require[k]=other;console.log(require);//输出的是functionrequire(id){.....}console.log(require.plus);//输出的是functionother(){...}这种情况该怎么解释这个require呢?是函数呢还是普通对象呢?我知道函数也是一种对象
芜湖不芜
森栏
随时随地看视频慕课网APP
相关分类