$(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代码备份的更多相关文章

  1. 博客使用的CSS代码备份

    CSS代码备份 /*simplememory*/ #google_ad_c1, #google_ad_c2 { display: none; } .syntaxhighlighter a, .synt ...

  2. 1.svn 彻底clear时,注意代码备份 2.借助vc助手加头文件

    1.svn 彻底clear时,注意代码备份 2.不小心彻底clear可以在回收站找到 3.借助vc助手加头文件

  3. 同时将代码备份到Gitee和GitHub

    同时将代码备份到Gitee和GitHub 如何将GitHub项目一步导入Gitee 如何保持Gitee和GitHub同步更新 如何将GitHub项目一步导入Gitee 方法一: 登陆 Gitee 账号 ...

  4. Android短信管家视频播放器代码备份

    自己保留备份,增强记忆   这是video的类 public class VideoActivity extends Activity { /** * 解析网络页面 */ private WebVie ...

  5. [Python]南邮OJ代码备份爬虫

    之前看过Python学习的经验,说以project为导向学习. 自己分析了一下,一般接触Python的都有一定的其它语言基础,对于程序设计的基本逻辑,语法都有一个大概的了解.而Python这样的脚本语 ...

  6. CentOS 系统下Gitlab搭建与基本配置 以及代码备份迁移过程

    GitLab 是一个开源的版本管理系统,提供了类似于 GitHub 的源代码浏览,管理缺陷和注释等功能,你可以将代码免费托管到 GitLab.com,而且不限项目数量和成员数.最吸引人的一点是,可以在 ...

  7. Qt 窗体间传值(代码备份)

    刚开始看的时候看的云里雾里的,现在稍微明白一点了.现在假设有一个form,一个MainWindow,如图所示: 实现点击PushButton,将文本框中的内容传输到MainWindow中,显示为Lab ...

  8. java代码备份mysql数据库

    编写bat文件 @echo off set "date_string=%date:~0,4%-%date:~5,2%-%date:~8,2%" set "time_str ...

  9. html和js基础功能代码备份

    1)贴图:<img src="图片地址">2)加入连接:<a href="所要连接的相关地址">写上你想写的字</a> 3) ...

  10. Octopus系列之代码备份

    代码 $.extend($.validator.messages, { required: "This field is required.", remote: "Ple ...

随机推荐

  1. 全世界只有我们Erlang程序员是正确的

    http://www.aqee.net/erlang-solving-the-wrong-problem/ 对某些程序来说是的,但对大多数程序来说不是.对大多数程序来说24个CPU中只有一个被利用.C ...

  2. (转载)PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in

    (转载)http://blog.csdn.net/beyondlpf/article/details/7794028 Fatal error: Allowed memory size of 13421 ...

  3. QTP常见问题解决方法(一)

    1.对脚本的运行速度进行设置 TOOLS->OPTIONS->RUN->RUN MODE 设置就可以了:一般可以设置为500或者1000值,也就是毫秒: QTP 12.0版本: TO ...

  4. python调用系统命令 shell命令

    使用python调用系统命令,基本有3种选择: 1. 使用os模块的system方法 import os os.system('ls') 2. 使用os模块的popen方法 import os os. ...

  5. 【CSS3】Advanced8:CSS Backgrounds: Multiples, Size, and Origin

    1.Multiples,Size,and Origin eg:background-image:url(bg.png),url(bullet.png) 0 50% no-repeat,url(arro ...

  6. node系列1

    NodeJS基础 JS是脚本语言,脚本语言都需要一个解析器才能运行,NodeJS就是一个解析器.nodejs.org 打开终端,键入node进入命令交互模式,可以输入一条代码语句后立即执行并显示结果 ...

  7. How to change pager CSS in CGridView CListView in Yii

    类手册: http://www.yiiframework.com/doc/api/1.1/CLinkPager 其它参考: http://capstone3.blogspot.com/2012/06/ ...

  8. 问题-[Delphi]在对GRID设置单击为编辑时,其他GRID可以,但有一个GRID不行?

    问题现象:在对GRID设置单击为编辑时,其他GRID可以,但有一个GRID不行?问题原因:在这个GRID中的单击事件可能不存在,可以测试一下有没有单击事件.解决方法:需要在GRID的上一个类中,放开单 ...

  9. [五]JFreeChart实践四之直线图

    重点: 1.时间序列集合作为dataset,一个时间序列为一条折线 2.时间序列可以是月:年,小时:天 3.准备好时间序列要放入时间序列集合中 4.将时间序列集合作为dataset传入ChartFac ...

  10. 在Visual Studio中使用Pseudovariables来帮助调试

    博客搬到了fresky.github.io - Dawei XU,请各位看官挪步.最新的一篇是:在Visual Studio中使用Pseudovariables来帮助调试.