Home > front end >  Ask a simple json data and display problems
Ask a simple json data and display problems

Time:10-04

Try to learn from the json data and displayed in the page, the json file name: tqxs_order. HTM, published for the local address, http://127.0.0.1/tqxs_order.htm, data format:
 
Jsoncallback ({" info ": [

{" url ":" http://127.0.0.1/xwzx/01/327263.shtml ", "title" : "the recent weather situation analysis", "summary" : "in the next few days, most of the temperature in our province general trend is to enter on the resilience of the channel, while the degree of cold abated, but now, after all, in a bitter winter"},

{" url ":" http://127.0.01/xwzx/01/327224.shtml ", "title" : "the recent weather situation analysis", "summary" : "1 PM: the provincial fine sometimes cloudy,"},

]})


HTMl file name index. HTM, release for the machine http://127.0.0.1 code is:
 


<script SRC="https://bbs.csdn.net/topics/js/jquery-1.9.1.js" & gt; </script>





The question now is whether the page is not an error and no data,

CodePudding user response:

  •  Tags:  
  • Ajax
  • Related