我正在尝试在accordion的锚定标记中的JSP上呈现JSON对象,在单击该对象时应该调用jQuery函数。然后,此jQuery函数将打开该手风琴。这是jQuery函数: $('.mrc-accordion .columns > ul > li > a').click(function(()不会被调用。ul id="some
fetch("https://jsonplaceholder.typicode.com/posts").then( console.log(response.json()); //why the data not logged and promise is logged );let response = fetch("https://jsonplaceholder.typicode.com/posts")
.then((response) => r