实例 AppML 使用 JSON 文件

x
 
<!DOCTYPE html>
<html lang="en-US">
<title>Customers</title>
<link rel="stylesheet" href="/example/appml/style.css">
<script src="https://cankaoshouce.com/js/appml/appml.js"></script>
<body>
<div class="w3-container" appml-data="/example/appml/customers.js">
<h1>Customers</h1>
<h3>Displayed from JSON file</h3>
  <table class="w3-table-all">
  <tr>
    <th>Customer</th>
    <th>City</th>
    <th>Country</th>
  </tr>
  <tr appml-repeat="records">
    <td>{{CustomerName}}</td>
    <td>{{City}}</td>
    <td>{{Country}}</td>
  </tr>
  </table>
</div>
</body>
</html>
                    

输出结果