20151216JqueryUI---dialog代码备份
$(function () {
$('#search_button').button();
/*$('#reg').dialog({
focus:function(e,ui){
alert('注册');
}
});
$('#login').dialog({
focus:function(e,ui){
alert('登录');
}
});*/
$('#reg').dialog({
/*create:function(e,ui){
alert('创建');
},
autoOpen:false,*/
/*open:function(){
alert('打开');
},
autoOpen:false,*/
/*close:function(){
alert('关闭');
}, */
//这个事件可以做一些确认性的事件
/*beforeClose:function(){
alert('将要关闭');
return false;
},*/
/*drag:function(){
alert('每次移动都要执行');
}*/
/*drag:function(e,ui){
alert('top:'+ui.position.top+'\n'
+'left:'+ui.position.left);
},*/
/*dragStart:function(e,ui){
alert('top:'+ui.position.top+'\n'
+'left:'+ui.position.left);
},*/
/*dragStop:function(e,ui){
alert('top:'+ui.position.top+'\n'
+'left:'+ui.position.left);
},*/
/*resize:function(){
alert('每次调整大小执行');
}*/
//得到当前拉伸大小
/*resize:function(e,ui){
alert('width:'+ui.size.width+'\n'
+'height:'+ui.size.height);
}*/
//结束大小
/* resizeStop:function(e,ui){
alert('width:'+ui.size.width+'\n'
+'height:'+ui.size.height);
}*/
//打开对话框
autoOpen:true,
});
$('#reg_a').click(function() {
$('#reg').dialog('open');
});
$('#reg').click(function() {
//$('#reg').dialog('close');
//销毁
//$('#reg').dialog('destroy');
});
//判断是否打开
//alert($('#reg').dialog('isOpen'));
//$('#reg').dialog('open').css('font-size','50px');
/*$('#reg').dialog('open');
$('#reg').dialog('widget').css('font-size','50px');*/
//alert($('#reg').dialog('option','title'));
//alert($('#reg').dialog('option','autoOpen'));
//$('#reg').dialog('option','title','111');
$('#reg').on('dialogclose',function(){
alert('关闭对话框');
});
});
20151216JqueryUI---dialog代码备份的更多相关文章
- 博客使用的CSS代码备份
CSS代码备份 /*simplememory*/ #google_ad_c1, #google_ad_c2 { display: none; } .syntaxhighlighter a, .synt ...
- 1.svn 彻底clear时,注意代码备份 2.借助vc助手加头文件
1.svn 彻底clear时,注意代码备份 2.不小心彻底clear可以在回收站找到 3.借助vc助手加头文件
- 同时将代码备份到Gitee和GitHub
同时将代码备份到Gitee和GitHub 如何将GitHub项目一步导入Gitee 如何保持Gitee和GitHub同步更新 如何将GitHub项目一步导入Gitee 方法一: 登陆 Gitee 账号 ...
- Android短信管家视频播放器代码备份
自己保留备份,增强记忆 这是video的类 public class VideoActivity extends Activity { /** * 解析网络页面 */ private WebVie ...
- [Python]南邮OJ代码备份爬虫
之前看过Python学习的经验,说以project为导向学习. 自己分析了一下,一般接触Python的都有一定的其它语言基础,对于程序设计的基本逻辑,语法都有一个大概的了解.而Python这样的脚本语 ...
- CentOS 系统下Gitlab搭建与基本配置 以及代码备份迁移过程
GitLab 是一个开源的版本管理系统,提供了类似于 GitHub 的源代码浏览,管理缺陷和注释等功能,你可以将代码免费托管到 GitLab.com,而且不限项目数量和成员数.最吸引人的一点是,可以在 ...
- Qt 窗体间传值(代码备份)
刚开始看的时候看的云里雾里的,现在稍微明白一点了.现在假设有一个form,一个MainWindow,如图所示: 实现点击PushButton,将文本框中的内容传输到MainWindow中,显示为Lab ...
- java代码备份mysql数据库
编写bat文件 @echo off set "date_string=%date:~0,4%-%date:~5,2%-%date:~8,2%" set "time_str ...
- html和js基础功能代码备份
1)贴图:<img src="图片地址">2)加入连接:<a href="所要连接的相关地址">写上你想写的字</a> 3) ...
- Octopus系列之代码备份
代码 $.extend($.validator.messages, { required: "This field is required.", remote: "Ple ...
随机推荐
- 从零开始学习jQuery (十一) 实战表单验证与自动完成提示插件
一.摘要 本系列文章将带您进入jQuery的精彩世界, 其中有很多作者具体的使用经验和解决方案, 即使你会使用jQuery也能在阅读中发现些许秘籍. 本文是介绍两个最常用的jQuery插件. 分别用 ...
- 如何判断 Android 应用的 Apk 签名是否一致?
可以比对apk签名的fingerprint. 假定安装了JDK,如果想查HelloWorld.apk所使用的签名的fingerprint,可以这样做: 1. 查找apk里的rsa文件 (Windows ...
- ruby编程语言-学习笔记5(第5章 语句和控制结构)
以下是2种表达方式一样. if expression code end if expression then #推荐这种形式 code end expression的值不是false或nil,则cod ...
- Linux下的nginx启动、重新启动
nginx的启动命令是: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf -c制定配置文件的路径,不加-nginx会自动 ...
- MEF学习小结 z
1.什么是MEF. MEF,全称是Managed Extensibility Framework.它是.NET Framework4.0的一个类库,其主要目的是为了创建可扩展的应用程序.按照官方说法就 ...
- How to change the property of a control from a flowlayoutpanel?
Well, the easiest way would be to retain an explicit reference to the buttons you're adding. Otherwi ...
- XML常用颜色值
<?xml version="1.0" encoding="utf-8" ?> <resources> <color name=& ...
- boost库的使用(一)
参考http://www.cnblogs.com/lexus/archive/2012/07/15/2592250.html bjam stage --without-python --toolset ...
- 【原】Spark中Client源码分析(二)
继续前一篇的内容.前一篇内容为: Spark中Client源码分析(一)http://www.cnblogs.com/yourarebest/p/5313006.html DriverClient中的 ...
- Android: Dragging Popup Window 可移动浮动View
final View cv = new View(this); setContentView(cv); TextView tv = new TextView(this); tv.setBackgrou ...