EasyUI 基础组件

举报
tea_year 发表于 2021/12/30 01:28:36 2021/12/30
【摘要】 视频课:https://edu.csdn.net/course/play/7621 本案例主要针对EasyUI常用的panel,window,dialog做了下简要的讲解,没有把window的图上传,敬请大家自己敲下代码实现,比较简单,主要内容针对基金系统作了下应用。 <%@ page language="java" import...

视频课:https://edu.csdn.net/course/play/7621

本案例主要针对EasyUI常用的panel,window,dialog做了下简要的讲解,没有把window的图上传,敬请大家自己敲下代码实现,比较简单,主要内容针对基金系统作了下应用。


  
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  5. %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head>
  9. <base href="<%=basePath%>">
  10. <title>My JSP '018_window.jsp' starting page</title>
  11. <meta http-equiv="pragma" content="no-cache">
  12. <meta http-equiv="cache-control" content="no-cache">
  13. <meta http-equiv="expires" content="0">
  14. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  15. <meta http-equiv="description" content="This is my page">
  16. <script type="text/javascript" src="js/jquery-easyui-1.2.6/jquery-1.7.2.min.js"></script>
  17. <link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.2.6/themes/default/easyui.css" />
  18. <link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.2.6/themes/icon.css" />
  19. <script type="text/javascript" src="js/jquery-easyui-1.2.6/jquery.easyui.min.js"></script>
  20. <script type="text/javascript" src="js/jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js"></script>
  21. <script type="text/javascript">
  22. $(function(){ //利用渲染,来初始化组件;
  23. $('#mypanel').panel({
  24. title:'金融产品介绍',
  25. width:300,
  26. height:300,
  27. iconCls:true,
  28. collapsible:true,
  29. closable:true,
  30. content:[{text:'a'},{text:'b'}]
  31. });
  32. });
  33. /*$(function(){
  34. $('#mywin').window({
  35. content:'购买基金成功!',
  36. onOpen:function(){
  37. //$.messager.alert('message','success');
  38. }
  39. });
  40. });
  41. $(function(){
  42. $('#buyfund').click(function(){
  43. $('#mywin').window('open');
  44. });
  45. });*/
  46. /*
  47. $(function(){
  48. $('#fundinfo').dialog({
  49. title:'个人基金信息修改',
  50. iconCls:'icon-ok',
  51. toolbar:[{
  52. text:'申购',
  53. iconCls:'icon-add',
  54. handler:function(){
  55. $.messager.alert('提示信息','为您打开基金申购');
  56. }
  57. },{
  58. text:'赎回',
  59. iconCls:'icon-edit'
  60. }],
  61. buttons:[
  62. {
  63. text:'确定',
  64. iconCls:'icon-redo',
  65. handler:function(){
  66. $.messager.alert('提示信息','基金申购成功');
  67. }
  68. },{
  69. text:'取消',
  70. iconCls:'icon-undo',
  71. handler:function(){
  72. $.messager.alert('提示信息','基金操作取消');
  73. }
  74. }
  75. ]
  76. });
  77. });*/
  78. </script>
  79. </head>
  80. <body>
  81. <h2>可以使用两种方式来创建布局,html或js</h2>
  82. <div id="mypanel" class="easyui-panel" style="width:300px;height:300px" title="我的面板"
  83. iconCls="icon-add" minimizable="true" maximizable="true" closable="true" collapsible="true">
  84. </div>-
  85. <!-- <div id="mypanel" title="产品2">债券基金</div>
  86. <div id="mywin" class="easyui-window" closed=true title="购买基金" style="width: 400px;height:300px;"
  87. draggable=false resizable=false></div>
  88. <a id="buyfund" class="easyui-linkbutton">测试链接按钮</a>
  89. <div id="fundinfo" class="easyui-dialog" style="width:400px;height: 300px"></div>-->
  90. </body>
  91. </html>

效果图如下:




文章来源: aaaedu.blog.csdn.net,作者:tea_year,版权归原作者所有,如需转载,请联系作者。

原文链接:aaaedu.blog.csdn.net/article/details/51927487

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。