【单选题】【消耗次数:1】
在页面中有一个id为book的下拉列表框,下列( )能够动态地在下拉列表框book中添加一个选项,并且显示结果如图所示。(有图)
document.getElementById(book).add(new Option(01,梦想照进现实),null);
document.getElementById(book).add(01,梦想照进现实);
document.getElementById(book).add(梦想照进现实,01);
document.getElementById(book).add(new Option(梦想照进现实,01),null);
参考答案:
复制
纠错
相关题目
【单选题】 在页面中有一个id为book的下拉列表框,下列( )能够动态地在下拉列表框book中添加一个选项,并且显示结果如图所示。<img src=https://huaweicloudobs.ahjxjy.cn/19D8EC7ADFA9472CCAA1C8E4D269A3BB.png title=Q-68.png alt=Q-68.png/>(选择一项)
①  document.getElementById(book).add(new Option(01,梦想照进现实),null);
②  document.getElementById(book).add(01,梦想照进现实
③  document.getElementById(book).add(梦想照进现实,01
④  document.getElementById(book).add(new Option(梦想照进现实,01),null);
【多选题】 在javascript中,下面代码表示获取文本框的值,则下列选项中验证文本框为空的条件表达式不正确的是() var userName=document.getElementById(txtName).value;
①  userName==
②  userName.length<=0
③  userName.length<0
④  userName.length=
【多选题】 在javascript中,下面代码表示获取文本框的值,则下列选项中验证文本框为空的条件表达式不正确的是()var userName=document.getElementById(txtName).value;(选择二项)
①  userName==
②  userName.length(=0)
③  userName.length(0)
④  userName.length=
【单选题】 假定有“struct BOOK{char title[40];float price;};struct BOOK *book;”,则不正确的语句为( )。
①  struct BOOK *x=malloc(book);
②  struct BOOK x={“C++ Programming”,27.0};
③  struct BOOK *x=malloc(sizeof(BOOK));
④  struct BOOK **x=
【单选题】 假定有“struct BOOK{char title[40];float price;};struct BOOK *book;”,则不正确的语句为( )。
①  struct BOOK *x=malloc(book);
②  struct BOOK x={“C++ Programming”,27.0};
③  struct BOOK *x=malloc(sizeof(BOOK));
④  struct BOOK **x=
【单选题】 His new book___ next month.
①  will be published
②  is publishing
③  is being published
④  has been published
【单选题】 假定有“struct BOOK{char title[40];float price;} book;”,则正确的语句为( )。
①  struct BOOK x=
②  struct BOOK *x=
③  struct BOOK x=calloc(BOOK);
④  struct BOOK *x=BOOK;
【单选题】 假定有“struct BOOK{char title[40];float price;} book;”,则正确的语句为( )。
①  struct BOOK x=
②  struct BOOK *x=
③  struct BOOK x=calloc(BOOK);
④  struct BOOK *x=BOOK;
【单选题】 9.His new book___ next month.
①  will be published
②  is publishing
③  is being published
④  has been published
【判断题】 Visual Basic提供了列表框控件,当列表框中的项目较多、超过了列表框的长度时,系统会自动在列表框边上加一个滚动条。
①  正确
②  错误
随机题目
【单选题】 Most of the runners in the London Marathon are raising money ( ).
①  in return
②  out of curiosity
③  for charity
④  on duty
【单选题】 I found the article while I was ( ) some old magazines.
①  browsing through
②  looking into
③  staring at
④  watching out
【单选题】 She travelled the world in ( ) of her dreams.
①  terms
②  preference
③  spite
④  pursuit
【单选题】 ( ) he finished writing the composition in such a short time surprised us all.
①  What
②  How
③  That
④  If
【单选题】 Im very much afraid that your wife may be ( ) in the crime.
①  involvement
②  involved
③  involve
④  involves
【单选题】 They looked at the ( ) of the dancing waves in the sunlight.
①  sparkly
②  sparkle
③  sparker
④  sparking
【单选题】 People walk around ( ) nineteenth-century clothes.
①  wearing
②  wore
③  wear
④  worn
【单选题】 The ( ) of this approach is a lack of clear leadership.
①  merit
②  advantage
③  virtue
④  downside
【单选题】 I agree with you to a certain ( ).
①  amount
②  degree
③  point
④  grade
【单选题】 A set of ( ) of the product is included in the package for you to try first.
①  sampler
②  example
③  sample
④  sampling