这篇文章主要为大家详细介绍了jQuery组件easyui对话框实现代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basic Dialog - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="//www.submisscin.com/wap/../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="//www.submisscin.com/wap/../themes/icon.css">
<link rel="stylesheet" type="text/css" href="//www.submisscin.com/wap/demo.css">
<script type="text/javascript" src="//www.submisscin.com/wap/../jquery.min.js"></script>
<script type="text/javascript" src="//www.submisscin.com/wap/../jquery.easyui.min.js"></script>
</head>
<body>
<h2>基本对话框</h2>
<p>单击打开或关闭对话框</p>
<div style="margin:20px 0;">
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('open')">打开</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('close')">关闭</a>
</div>
<div id="dlg" class="easyui-dialog" title="基本 Dialog" data-options="iconCls:'icon-save'" style="width:400px;height:200px;padding:10px">
有活就干,干完活吃饭,吃完饭睡觉.
</div>
</body>
</html>
以上就是本文的全部内容,希望对大家的学习有所帮助