移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

A Web service returns a list of system users in the following format. You need to populate a drop-down menu with the IDs and names of the users from the Web service, in the order provided by the service. Which code segment should you use?() 

发布日期:2021-01-28

A Web service returns a list of system users in th...
A

$.ajax({type: GET, url: serviceURL, success: function(xml) { $.each($(xml), function(i, item) { $().attr(value, id).text(tx).appendTo(#dropdown); }); } });

B

$.ajax({ type: GET, url: serviceURL, success: function(xml) { $(xml).find(user).each(function() { var id = $(this).id;  var tx = $(this).name.text $().attr(value, id).text(tx).appendTo(#dropdown); }); } });

C

$.ajax({ type: GET, url: serviceURL, success: function(xml) { $(xml).find(user).each(function() { var id = $(this).attr(id); var tx = $(this).find(name).text();$().attr(value, id).text(tx).appendTo(#dropdown); }); } });

D

$.ajax({ type: GET, url: serviceURL, success: function(xml) {  xml.find(user).each(function(node) {  var id = $(node).attr(id); var tx = $(node).find(name).text(); $().attr(value, id).text(tx).appendTo(#dropdown); }); } });

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

CMS专题

CMS专题

去刷题
热门试题热门资讯 相关试题

暂无相关推荐~