访问如下json对象中的name属性的方式是:var stu={name:"张三",age:20}
A: stu[name]
B: stu.name
C: stu->name
D: this.name
A: stu[name]
B: stu.name
C: stu->name
D: this.name
举一反三
- 考察以下程序片段var name = document.getElementById(“stu”);以下选项正确的是( ) A: stu是控件的id B: stu是一个div C: stu是一个文本框 D: stu是控件的name
- 如果函数定义为def stu(name): ,则下面对该函数的调用不合法的是( )。 A: stu(“Lucy”) B: stu() C: stu(‘Lucy’) D: stu(name=’Lucy’)
- 以下结构体的定义语句中,正确的是______。? struct student {int num; char name[10];int age;}stu;|struct {int num; char name[10];int age;}student; struct student stu;|struct student {int num; char name[10]; int age;}; student stu;|struct student {int num; char name[10];int age;};stu;
- 智慧职教: 阅读如下代码:var stu= [{"name":"李白","age":5},{"name":"杜甫","age":6}]下列输出结果是“李白”的选项为( )。
- 创建数据库表,下列语句中正确的是()。 A: create table stu(no integer, name text, sex text, age integer) B: table stu(no integer, name text, sex text, age integer) C: create stu(no integer, name text, sex text, age integer) D: 以上都不对