【简答题】阅读如下代码,输出结果为“李白”的选项为(__)。var data = [{"name":"李白","age":5},{"name":"杜甫","age":6}];A. alert(data[0].name); B. alert(data.0.name); C. alert(data[0]['name']); D. alert(data.0.['name']);
【简答题】阅读如下代码:
var stu= [{"name":"李白","age":5},{"name":"杜甫","age":6}];
下列输出结果是“李白”的选项为()。A. alert(stu[0].name); B. alert(stu.0.name); C. alert(stu[0]['name']); D. alert(stu.0.['name']);