My javascript won't work as it should

前端 未结 5 1734
闹比i
闹比i 2021-01-17 01:40

I\'m trying to create a website in HTML which recieves JSON-formatted data using javascript and, then it will be injecting that data into my website.

The problem is

5条回答
  •  礼貌的吻别
    2021-01-17 02:19

    Try to use a Firebug (or some other browser developer tool) and in a Firebug console check errors and data received from server.

    Edit: Okay. You posted your JS code. Your code looks OK. Data from server is received. If you see nothing after running this. Probably you have malformed HTML. Is in your page a div element or something other with id="output"?

提交回复
热议问题