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 ...
随机推荐
- uboot环境变量(设置bootargs向linux内核传递正确的参数)
这是我uboot的环境变量设置,在该设置下可以运行initram内核(从内存下载到nandflash再运行),但是运行nfs根文件系统的时候一直出错,各种错误.查看了很多资料后猜想应该是uboot传递 ...
- 安卓使用WIFI调试程序
不知怎么回事,USB老是掉,真心烦.于是想着用WIFI可不可以调试呢,去百度一搜,果然可以.下面我说一下我的方案. 1.使用APWIFI创建WIFI热点,用安卓手机连接该热点,试试手机可以上网不. 2 ...
- Velocity资源
这里有非常多的资源和示例提供给程序员,我们推荐您查阅我们提供的示例.文档和源代码.下面是一些非常有用的资源列表: 用户和开发者社区:可以通过mail-lists加入我们.mail-lists网页地址: ...
- Java笔记(二十三)……Map集合
Map接口 Map<K,V> 该集合存储的是键值对,成对往集合里存,而且要保证键的唯一性 常用方法 添加 Vput(K key, V value) voidputAll(Map<? ...
- BestCoder Round #81 (div.1)A
水题...就是n的三进制后m位 #include<cstdio> #include<cstring> #include<cstdlib> #include<i ...
- LeetCode:Restore IP Address
93. Restore IP Addresses Given a string containing only digits, restore it by returning all possible ...
- MVC client validation after PartialView loaded via Ajax MVC3中 弹出 Dialog时候 提交的时候 使用 Jquery 不验证 form表单 的解决办法
I came across this scenario whereby my main View uses Ajax posts to retrieve PartialViews and delive ...
- (android 源码下开发应用程序) 如何在 Android 各 level ( 包含 user space 與 kernel space ) 使用dump call stack的方法
http://janbarry0914.blogspot.com/2014/07/androiddump-call-stack.html dump call stack [文章重點] 了解 Andro ...
- mybatis的$存在安全问题,为什么又不得不用?
1.mybatis的官网关于$和#的字符串替换符号区别描述如下: http://www.mybatis.org/mybatis-3/zh/sqlmap-xml.html#Parameters 上面的意 ...
- springboot 详细配置2
# =================================================================== # COMMON SPRING BOOT PROPERTIE ...