EasyUI的简单使用

矫情吗;* 2022-08-07 13:46 344阅读 0赞
  1. WebRoot
  2. js
  3. easyUI
  4. themes
  5. default
  6. easyui.css
  7. icon.css
  8. plugins
  9. local
  10. jquery-1.8.3.js
  11. jquery.easyui.min.js
  12. META-INF
  13. WEB-INF
  14. lib
  15. web.xml

1.EasyUI插件使用的一般步骤
1.导入easyui的css样式

2.导入easyui的图标css样式

3.导入jquery的基本核心文件

4.导入easyui的js文件

===================================================draggable/droppable====================================================
1.draggable和droppable可拖动面板插件的使用
1.创建html


1

2

3



2.创建script

===================================================progressbar====================================================
2.progressbar进度条插件的使用
1.创建html

2.创建script

======================================================datebox和datetimebox=====================================================
3.日期控件datebox和datetimebox插件的使用方法
1.创建html

2.创建script脚本进行格式转换
$(“#datebox”).datebox(
{
required : true,
formatter : function(date) {
var y = date.getFullYear();
var m = date.getMonth() + 1;
var d = date.getDate();
var h = new Date().getHours();
var M = new Date().getMinutes();
var s = new Date().getSeconds();
return y + ‘-‘ + (m < 10 ? (‘0’ + m) : m) + ‘-‘

  1. + (d < 10 ? ('0' + d) : d) + " "
  2. + (h < 10 ? ("0" + h) : h) + ":"
  3. + (M < 10 ? ("0" + M) : M) + ":"
  4. + (s < 10 ? ("0" + s) : s);
  5. \}
  6. \});
  7. $("\#datetimebox").datetimebox(
  8. \{
  9. required : true,
  10. formatter : function(date) \{
  11. var y = date.getFullYear();
  12. var m = date.getMonth() + 1;
  13. var d = date.getDate();
  14. var h = date.getHours();
  15. var M = date.getMinutes();
  16. var s = date.getSeconds();
  17. return y + '-' + (m < 10 ? ('0' + m) : m) + '-'
  18. + (d < 10 ? ('0' + d) : d) + " "
  19. + (h < 10 ? ("0" + h) : h) + ":"
  20. + (M < 10 ? ("0" + M) : M) + ":"
  21. + (s < 10 ? ("0" + s) : s);
  22. \}
  23. \});

发表评论

表情:
评论列表 (有 0 条评论,344人围观)

还没有评论,来说两句吧...

相关阅读