function my_article_list() { $.get( "../article/list.php", { userid: getCookie("userid"), setting: "", }, function (data, status) { if (status == "success") { try { let html = ""; let result = JSON.parse(data); let key = 1; for (const iterator of result) { html += '
'; html += '
'; html += "
" + key++ + "
"; html += "
" + iterator.title + "
"; html += "
" + "
"; html += "
15
"; html += "
"; } $("#article_list").html(html); } catch (e) { console.error(e); } } else { console.error("ajex error"); } } ); }