【发布时间】:2020-04-06 05:21:23
【问题描述】:
看看下面的两行。
foo = ({ data: { one, two }}) => {alert(one.type); alert(two.type);}
foo( /* What goes here*/ );
我会在第二行的 () 中添加什么来提醒第一个 alert() 中的“Hello”和第二个 alert() 中的“World”?
【问题讨论】:
-
foo({data: {一: {type: "Hello"}, 二: {type: "World"}}})
标签: javascript