Which code segment should you use?

You are developing an application that analyzes population data for major cities in the United
States. The application retrieves population statistics for a city by using a web service.
You need to request data from the web service by using jQuery.
Which code segment should you use?

You are developing an application that analyzes population data for major cities in the United
States. The application retrieves population statistics for a city by using a web service.
You need to request data from the web service by using jQuery.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 1

Your email address will not be published. Required fields are marked *


brkyctn

brkyctn

Explanation/Reference:
* type:
We post a SOAP request.
* data:
Data to be sent to the server.
The data option can contain either a query string of the form key1=value1&key2=value2, or an object of the
form {key1: ‘value1’, key2: ‘value2’}.
Reference: jQuery.ajax()