index.ejs 829 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title><%= title %></title>
  5. <link rel='stylesheet' href='/public/css/bootstrap.min.css' />
  6. <style>
  7. table{
  8. margin: 20px auto;
  9. line-height: 30px;
  10. }
  11. table td{
  12. padding: 0 10px;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <h1><%= title %></h1>
  18. <table border="1">
  19. <tr>
  20. <td>用户名</td>
  21. <td>用户展现名</td>
  22. </tr>
  23. <% for(var i in cUser) { %>
  24. <tr>
  25. <td><%= cUser[i]['userId'] %></td>
  26. <td><%= cUser[i]['userName'] %></td>
  27. </tr>
  28. <% } %>
  29. </table>
  30. <script src="/public/js/jquery-1.10.2.js"></script>
  31. <script src="/public/js/bootstrap.min.js"></script>
  32. <script>
  33. console.log();
  34. </script>
  35. </body>
  36. </html>