jQueryEasyUI(编程工具)

jQueryEasyUI(编程工具)

版本:v1.5.2 官方API中文版大小:3.29M

类别: 编程工具 系统:WinAll, WinXP, Win7, Win8, Win10

立即下载
  • jQueryEasyUI(编程工具) v1.5.2 官方API中文版0

JQueryEasyUI是一款能够帮助用户获取更为轻松的编程方式,软件拥有超简洁美观的UI界面,在这里你只需要懂基础的html标签就能够进行编程,有需要用到这款软件的朋友就赶快来绿色资源网下载使用吧!

jQueryEasyUI官方介绍

jQuery EasyUI是一组基于jQuery的UI插件集合体,而jQuery EasyUI的目标就是帮助web开发者更轻松的打造出功能丰富并且美观的UI界面。开发者不需要编写复杂的javascript,也不需要对css样式有深入的了解,开发者需要了解的只有一些简单的html标签。

jQueryEasyUI软件特色

1、基于jquery用户界面插件的集合

2、为一些当前用于交互的js应用提供必要的功能

3、EasyUI支持两种渲染方式分别为javascript方式(如:$('#p').panel({...}))和html标记方式(如:class="easyui-panel")

4、支持HTML5(通过data-options属性)

5、开发产品时可节省时间和资源

6、简单,但很强大

7、支持扩展,可根据自己的需求扩展控件

8、目前各项不足正以版本递增的方式不断完善

文档

EasyUI每个组件的属性,方法和事件。用户可以很容易地扩展他们。

属性

所有的属性都定义在jQuery.fn.{plugin}.defaults里面。例如,对话框属性定义在jQuery.fn.dialog.defaults里面。

事件

所有的事件(回调函数)也都定义在jQuery.fn.{plugin}.defaults里面。

方法

调用方法的语法:$('selector').plugin('method', parameter);

解释

selector是jQery对象选择器。

plugin 是插件的名称。

method 是相应插件现有的方法。

parameter 是参数对象,可以是一个对象、字符串等。

所有方法都定义在jQuery.fn.{plugin}.methods。每个方法都有2个参数:jq和param。第一个参数'jq'是必须的,这是指的jQuery对象。第二个参数'param'是指传入方法的实际参数。例如,为dialog组件扩展一个方法名为'mymove',代码如下:

$.extend($.fn.dialog.methods,{

mymove:function(jq,newposition){

returnjq.each(function(){

$(this).dialog('move',newposition);

});

}

});

$.extend($.fn.dialog.methods, {   mymove: function(jq, newposition){     return jq.each(function(){       $(this).dialog('move', newposition);     });   } });

现在你可以调用'mymove'方法将对话框移动到指定位置:

$('#dd').dialog('mymove',{

left:200,

top:100

});

$('#dd').dialog('mymove', {   left: 200,   top: 100 });

jQuery EasyUI 入门指南

下载程序库并导入EasyUI的CSS和Javascript文件到您的页面。

<linkrel="stylesheet"type="text/css"href="easyui/themes/default/easyui.css">

<linkrel="stylesheet"type="text/css"href="easyui/themes/icon.css">

<scripttype="text/javascript"src="easyui/jquery-1.7.2.min.js"></script>

<scripttype="text/javascript"src="easyui/jquery.easyui.min.js"></script>

<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css"> <script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>

一旦你导入了EasyUI必须的文件,你就可以通过标记或Javascript定义一个EasyUI组件。例如:定义一个带可折叠功能的面板,你需要写的HTML代码如下:

<divid="p"class="easyui-panel"style="width:500px;height:200px;padding:10px;"

title="MyPanel"iconCls="icon-save"collaPSible="true">

Thepanelcontent

</div>

<div id="p" style="width:500px;height:200px;padding:10px;" title="My Panel" iconCls="icon-save" collapsible="true"> The panel content </div>

当通过标记创建一个组件的时候从1.3版开始'data-options'属性可以用来支持HTML5兼容属性名称。所以你可以改写上面的代码为:

<divid="p"class="easyui-panel"style="width:500px;height:200px;padding:10px;"

title="MyPanel"data-options="iconCls:'icon-save',collapsible:true">

Thepanelcontent

</div>

<div id="p" style="width:500px;height:200px;padding:10px;" title="My Panel" data-options="iconCls:'icon-save',collapsible:true"> The panel content </div>

下面的代码演示了如何创建一个组合框,并绑定onSelect事件。

<inpuTCLass="easyui-combobox"name="language"

data-options="

url:'combobox_data.json',

valueField:'id',

textField:'text',

panelHeight:'auto',

onSelect:function(record){

alert(record.text)

查看全部

更新时间:2017-06-28
网友评论
我要跟贴
取消
猜你喜欢
  • JQuery

JQuery更多>>

JQuery是一款非常优秀的javascript库,为了满足广大编程爱好者和程序员的需求,现绿色小编为其提供JQuery各个版本下载、JQuery中文手册、JQuery插件等下载,有需要者欢迎到绿色资源网下载!

同类推荐
热门精品
最新应用