Hướng dẫn dùng jsontotable JavaScript
JSON can very easily be translated into JavaScript. JavaScript can be used to make HTML in your web pages. HTML TableMake an HTML table with data received as JSON: Example const dbParam = JSON.stringify({table:"customers",limit:20});
document.getElementById("demo").innerHTML = text; } xmlhttp.open("POST", "json_demo_html_table.php"); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("x=" + dbParam); Try it Yourself » Dynamic HTML TableMake the HTML table based on the value of a drop down menu: Example
Try it Yourself » HTML Drop Down ListMake an HTML drop down list with data received as JSON: Example const dbParam = JSON.stringify({table:"customers",limit:20}); Try it Yourself » |