JQuery obtains the json data implementation code. jquery obtains the json code.
Implementation Code for jQuery to obtain json data:
Using jQuery to operate json data is very frequent. The code at both ends is provided for your reference. You can analyze the data on your own for flexible application.
/Topic // send ajax request $. getJSON (".. /.. /.. /Templet/GetInfoHandler. ashx ", // server page that generates JSON data {id:" 0 ", sid:" 1; 2; 3 ", rid: Math. round (Math. random () * 10)}, // query string sent to the server // process the returned JSON data. function (json) {// cyclically retrieve the data in json, and displayed in the list $ ("# column_0_1 "). empty (); var colstr = '
C # program for generating json data using Litjson:
// Topic // send ajax request $. getJSON (".. /.. /.. /Templet/GetInfoHandler. ashx ", // server page that generates JSON data {id:" 0 ", sid:" 1; 2; 3 ", rid: Math. round (Math. random () * 10)}, // query string sent to the server // process the returned JSON data. function (json) {// cyclically retrieve the data in json, and displayed in the list $ ("# column_0_1 "). empty (); var colstr = '
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 7857.
For more information, see: http://www.softwhy.com/jquery/