Pull in JSON data

后端 未结 3 1470
南笙
南笙 2021-01-24 07:22

I am trying to get an event calendar working from json data. I just want to highlight dates, and have a div update below the calendar with the event details when the user clicks

3条回答
  •  面向向阳花
    2021-01-24 07:56

    Quite a lot of code to dig through, but aren't you making an asynchronous call and then trying to return a value from an anonymous function? Trying to use events just after initiating getJSON but probably quite a bit before the data is actually fetched?

提交回复
热议问题