依赖

  jquery.js

  dialog.js

  dialog-plus.js

  ui-dialog.css

实例

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>
	<link rel="stylesheet" href="dialog/ui-dialog.css">
</head>
<body>
	<div id="dialog" title="基本的对话框">
		这是一个默认的对话框,用于显示信息。对话框窗口可以移动,调整尺寸,默认可通过 'x' 图标关闭。1234567890
	</div>
	<script src="dialog/jquery.js"></script>
	<script src="dialog/dialog.js"></script>
	<script src="dialog/dialog-plus.js"></script>
	<script>
		$(function() {
			var responseDialog = dialog({
				title:"API调用接口返回",
				content:$("#dialog").html(),
				okValue: '是',
				ok:function(){
					console.log(2);
				},
				cancelValue: '否',
				cancel:function(){
					console.log(1);
				},
				onshow: function () {
					console.log(1);
				}
			});
			responseDialog.showModal();
		});
	</script>
</body>
</html>