WebRoot/kindeditor_a5/examples/dialog.html
(完整代码) 946B<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Dialog Examples</title>
<link rel="stylesheet" href="../themes/default/default.css" />
<script src="../kindeditor.js"></script>
<script>
KindEditor.ready(function(K) {
K('#create1').click(function() {
var dialog = K.dialog({
width : 500,
title : '测试窗口',
body : '<div style="margin:10px;"><strong>内容</strong></div>',
closeBtn : {
name : '关闭',
click : function(e) {
dialog.remove();
}
},
yesBtn : {
name : '确定',
click : function(e) {
alert(this.value);
}
},
noBtn : {
name : '取消',
click : function(e) {
dialog.remove();
}
}
});
});
});
</script>
</head>
<body>
<input type="button" id="create1" value="打开弹出框" />
</body>
</html>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
