博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
easyui使用介绍
阅读量:7012 次
发布时间:2019-06-28

本文共 2000 字,大约阅读时间需要 6 分钟。

based on jQuery, Angular and Vue.
don't need to write many javascript code, you usually define user-interface by writing some HTML markups.
Freeware edition does not include source code (code is "compressed").
Each component of easyui has properties, methods and events. Users can extend them easily.
properties
is defined in jQuery.fn.{plugin}.defaults
events(callback functions) is defined in jQuery.fn.{plugin}.defaults also. 一样
Methods
defined in jQuery.fn.{plugin}.methods.
 Each method has two parameters: jq and param. 
调用:
$('selector').plugin('method', parameter);
引入
  1. <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
  2. <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
  3. <script type="text/javascript" src="easyui/jquery.min.js"></script>
  4. <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
或可选的
//引入语言包
<script type=
"text/javascript"
src=
"easyui/locale/easyui-lang-zh_CN.js"
></script>
窗口
Load window content via ajax.
  1. $('#win').window('refresh', 'get_content.php');
动态添加tabs
分页
折叠面板:个人感觉可以用作左侧导航,
布局也可以作左侧导航(region="west"和center)
布局:5部分,可以嵌套, 如果放在整个页面上,需要加在body上
<body
class
=
"easyui-layout"
>,而不是<div
id
=
"cc"
class
=
"easyui-layout"
fit属性:
尺寸适应它的父容器
有时<!DOCTYPE html> 这行代码会出现
菜单
sidemenu
按钮有链接按钮,
菜单按钮:可实现下拉式菜单,
SplitButton跟
菜单按钮差不多,区别是, splitbutton is split into two parts.When moving mouse over the splitbutton, a 'split' line will display. The menu only display when moving mouse over the right part of splitbutton.
SwitchButton
MaskedBox:结构化输入
Combo:
display a editable text box and drop-down panel
DataGrid
DataList:
a special datagrid that displays data in one column.
ComboBox:
display an editable text box and drop-down list,user can select one or multiple values. 
ComboTree:
 similar to combobox but replace the list with tree component.
ComboGrid:
an editable text box with drop-down datagrid panel
TreeGrid
ComboTreeGrid
TagBox
Spinner:
Messager
PropertyGrid
Tree
RTL (Right to Left) 
示例程序源码
中文文档
其它:rtl解释:

转载地址:http://znqtl.baihongyu.com/

你可能感兴趣的文章
安装PHP5和PHP7
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
android模仿铃声选择功能
查看>>
我的友情链接
查看>>
配置DHCP服务器
查看>>
centos 正确安装vitualbox
查看>>
清华大学MBA在职班第一学年第二学期课表
查看>>
PHP缓存技术
查看>>
Webix合集
查看>>
Mysql主从复制及读写分离的实现
查看>>
哈希表的静态,动态,以及key/value形式
查看>>
基于memcached-session-manager的tomcat session共享集群
查看>>
关于Apache的一些配置
查看>>
清除Windows Server Backup 备份副本
查看>>
常见Sqlite管理工具
查看>>
MySQL中创建、删除表和库,添加、删除记录
查看>>
Cloudflare能检测HTTPS并拦截MITMEngine
查看>>
android文件系统system-ramdisk-userdata三者之间的关系
查看>>
Collection has neither generic type or OneToMany.targetEntity()
查看>>