源代码 :
点击运行
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="appml.css"> </head> <body> <h1>Customers</h1> <div id="List01"></div><br> <table id="Template01" class="appmltable" style="width:100%;display:none"> <tr> <th>Customer</th> <th>City</th> <th>Country</th> </tr> <tr id="appml_row"> <td>#CustomerName#</td> <td>#City#</td> <td>#Country#</td> </tr> </table> <script src="appml.js"></script> <script> var customers; customers=new AppML("/try/appml/appml.php","../appml/Models/Customers.xml"); customers.run("List01","Template01"); </script> </body> </html>
运行结果