| 123456789101112131415161718192021222324252627282930313233 |
- 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 += '<div class="file_list_row" style="padding:5px;">';
- html +=
- '<div style="max-width:2em;flex:1;"><input type="checkbox" /></div>';
- html += "<div style='flex:1;'>" + key++ + "</div>";
- html += "<div style='flex:2;'>" + iterator.title + "</div>";
- html += "<div style='flex:2;'>" + "</div>";
- html += "<div style='flex:1;'>15</div>";
- html += "</div>";
- }
- $("#article_list").html(html);
- } catch (e) {
- console.error(e);
- }
- } else {
- console.error("ajex error");
- }
- }
- );
- }
|