zoukankan      html  css  js  c++  java
  • js-dialog

    依赖

      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>
    

      

  • 相关阅读:
    初入水:vector
    Sort Colors
    Palindrome Partitioning II
    Search for a Range
    Container With Most Water
    Palindrome Partitioning
    Longest Consecutive Sequence
    简单写了一个堆排序
    Best Time to Buy and Sell Stock III
    4-7
  • 原文地址:https://www.cnblogs.com/lichangyunnianxue/p/9759141.html
Copyright © 2011-2022 走看看