jQuery插件easyUI實現(xiàn)通過JS顯示Dialog的方法
本文實例分析了jQuery插件easyUI實現(xiàn)通過JS顯示Dialog的方法。分享給大家供大家參考。具體如下:
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title></title> <script src="jquery-easyui-1.3.4/jquery-1.8.0.min.js" type="text/javascript"></script> <script src="jquery-easyui-1.3.4/jquery.easyui.min.js" type="text/javascript"></script> <script src="jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js" type="text/javascript"></script> <link href="jquery-easyui-1.3.4/themes/icon.css" rel="stylesheet" type="text/css" /> <link href="jquery-easyui-1.3.4/themes/default/easyui.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $(function () { $("#myDialog").dialog({ modal: true, collapsible: true, //設(shè)置可折疊 toolbar: [{ //設(shè)置工具欄數(shù)組 text: '添加', iconCls: 'icon-add', handler: function () { $.messager.show({ showType: "fade", msg: "添加數(shù)據(jù)", title: "提示", timeout: 1000 }); } }, { text: '保存', iconCls: 'icon-save', handler: function () { $.messager.show({ showType: "fade", msg: "保存數(shù)據(jù)", title: "提示", timeout: 1000 }); } }], buttons: [{ //設(shè)置下方按鈕數(shù)組 text: '提交', iconCls: 'icon-ok', handler: function () { $.messager.show({ showType: "fade", msg: "提交數(shù)據(jù)", title: "提示", timeout: 1000 }); } }, { text: '取消', iconCls: 'icon-cancel', handler: function () { } }] }); }); </script>
更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery窗口操作技巧總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery常用插件及用法總結(jié)》、《jquery中Ajax用法總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jQuery擴展技巧總結(jié)》、《jQuery常見經(jīng)典特效匯總》、《jQuery動畫與特效用法總結(jié)》及《jquery選擇器用法總結(jié)》
希望本文所述對大家jQuery程序設(shè)計有所幫助。
相關(guān)文章
jQuery實現(xiàn)加入收藏夾功能(主流瀏覽器兼職)
jQuery實現(xiàn)加入收藏夾功能,代碼比較簡單,兼容主流瀏覽器,下面給大家分享下2016-12-12騰訊與新浪的通過IP地址獲取當(dāng)前地理位置(省份)的接口
通過IP地址獲取當(dāng)前地理位置(省份)的接口,方便大家可以直接使用結(jié)合自己的系統(tǒng)。2010-07-07jQuery插件FusionCharts實現(xiàn)的2D餅狀圖效果【附demo源碼下載】
這篇文章主要介紹了jQuery插件FusionCharts實現(xiàn)的2D餅狀圖效果,結(jié)合完整實例形式分析了FusionCharts插件2D餅狀圖繪制相關(guān)實現(xiàn)技巧,并附帶demo源碼供讀者下載參考,需要的朋友可以參考下2017-03-03jQuery實現(xiàn)form表單reset按鈕重置清空表單功能
有時候可能需要實現(xiàn)這樣的效果:使用ajax提交表單,成功提交表單之后清空表單,這種功能大家可能都希望實現(xiàn)吧,接下來為您詳細(xì)介紹,需要了解的朋友參考下2012-12-12