test.htm 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>知启蒙前端框架</title>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  8. <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
  9. <meta name="Author" content="知启蒙" />
  10. <meta name="Keywords" content="ZhiqimUI 知启蒙 zhiqim 开发教程 Java HTML5"/>
  11. <meta name="Description" content="知启蒙前端框架(ZhiqimUI)是一套集成Javascript库、Css库、Font库、常用ico图标等,并在其上开发的大量UI组件组成的前端开发套件。"/>
  12. <!-- 引入zhiqimUI的css文件 -->
  13. <link rel="stylesheet" href="https://zhiqim-org.oss-cn-shenzhen.aliyuncs.com/service/res/zhiqim_v1.5.0.r2018091201.css">
  14. <!-- 引入zhiqimUI的js文件 -->
  15. <script src="https://zhiqim-org.oss-cn-shenzhen.aliyuncs.com/service/res/zhiqim_v1.5.0.r2018091201.min.js"></script>
  16. <script>
  17. var i = 1;
  18. function doUpdate()
  19. {
  20. //以下代码将把id为text的input的value值改为"新的内容"。
  21. Z("#text").val("新的内容"+(i++));
  22. }
  23. function doDialog()
  24. {
  25. //以下代码弹出一个对话框。支持两种(dialog.text和dialog.url)
  26. var dialog = new Z.Dialog();
  27. dialog.text = "<div class='z-absolute-center-middle z-w100 z-h60 z-px20'>对话框内容</div>";//弹出对话框的内置HTML
  28. //dialog.url = location.href;//使用iframe弹出加新URL
  29. dialog.width = 500;
  30. dialog.height = 300;
  31. dialog.execute();
  32. }
  33. </script>
  34. </head>
  35. <body>
  36. <!-- 使用zhiqimUI的CSS定义 -->
  37. <table class="z-table z-bordered z-bd-rd8 z-absolute-center-middle zi-w300 z-h200">
  38. <tr>
  39. <td class="z-text-center">
  40. <input id="text" class="z-input z-large" value="原内容">&nbsp;&nbsp;<button class="z-button z-blue z-large" onclick="doUpdate();">点击</button>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td class="z-text-center">
  45. <button class="z-button z-blue z-large" onclick="doDialog();">弹出对话框</button>
  46. </td>
  47. </tr>
  48. </table>
  49. </body>
  50. </html>