jQuery+ajax简单实现文件上传的方法
922
2024-02-29

本文实例分析了jQuery插件easyUI实现通过JS显示Dialog的方法。分享给大家供大家参考。具体如下:
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title></title>
<script src="http://www.gimoo.net/t/1812/jquery-easyui-1.3.4/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="http://www.gimoo.net/t/1812/jquery-easyui-1.3.4/jquery.easyui.min.js" type="text/javascript"></script>
<script src="http://www.gimoo.net/t/1812/jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="http://www.gimoo.net/t/1812/jquery-easyui-1.3.4/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="http://www.gimoo.net/t/1812/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, //设置可折叠
toolbar: [{ //设置工具栏数组
text: '添加',
iconCls: 'icon-add',
handler: function () {
$.messager.show({ showType: "fade", msg: "添加数据", title: "提示", timeout: 1000 });
}
}, {
text: '保存',
iconCls: 'icon-save',
handler: function () {
$.messager.show({ showType: "fade", msg: "保存数据", title: "提示", timeout: 1000 });
}
}],
buttons: [{ //设置下方按钮数组
text: '提交',
iconCls: 'icon-ok',
handler: function () {
$.messager.show({ showType: "fade", msg: "提交数据", title: "提示", timeout: 1000 });
}
}, {
text: '取消',
iconCls: 'icon-cancel',
handler: function () {
}
}]
});
});
</script>
更多关于jQuery相关内容感兴趣的读者可查看本站专题:《jQuery窗口操作技巧总结》、《jQuery拖拽特效与技巧总结》、《jQuery常用插件及用法总结》、《jquery中Ajax用法总结》、《jQuery表格(table)操作技巧汇总》、《jQuery扩展技巧总结》、《jQuery常见经典特效汇总》、《jQuery动画与特效用法总结》及《jquery选择器用法总结》
希望本文所述对大家jQuery程序设计有所帮助。
#免责声明#
本站[绿夏技术导航]提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序或内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件[admin@lxwl520.com]与我们联系进行删除处理。敬请谅解!