doc.ejs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>文档中心</title>
  6. <link rel="stylesheet" href="/public/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="/public/js/treeTable/vsStyle/jquery.treeTable.css">
  8. <style>
  9. .red {color:red;}
  10. .result div { display:none; }
  11. .result div:nth-child(1) { display:block; }
  12. </style>
  13. </head>
  14. <body>
  15. <div class="container">
  16. <table id="class_list" class='table'>
  17. <thead>
  18. <tr>
  19. <th class="th">接口名</th>
  20. <th class="th">作者</th>
  21. <th class="th">注释</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <% for(var i in classInfos) { %>
  26. <tr id="<%= i %>">
  27. <th><span controller="true" style="font-size:16px;"><%= i %></span></th>
  28. <td><%= classInfos[i]['author'] %></td>
  29. <td class="td"><%= classInfos[i]['desc'] %></td>
  30. </tr>
  31. <% for(var o in classInfos[i]['funcs']) { %>
  32. <% var func = classInfos[i]['funcs'][o] %>
  33. <tr id="<%= i + '_' + o %>" pId="<%= o %>" hasChild="<%= func['param'].length > 0 ? 'true' : '' %>">
  34. <th>
  35. <span controller="true" style="font-size:16px;"><%= i + '/' + o%></span>
  36. </th>
  37. <td class="td"><%= func['author'] %></td>
  38. <td class="td"><%= func['desc'] %></td>
  39. </tr>
  40. <% } %>
  41. <% } %>
  42. </tbody>
  43. </table>
  44. </div>
  45. <script src="/public/js/jquery-1.10.2.js"></script>
  46. <script src="/public/js/bootstrap.min.js"></script>
  47. <script src="/public/js/treeTable/jquery.treeTable.js"></script>
  48. <script src="/public/js/doc.js"></script>
  49. </body>
  50. </html>