摘要: $(function () { $('#search_button').button(); /*$('#reg').dialog({ focus:function(e,ui){ alert('注册'); } }); $('#login').dialog({ focus:function(e,ui){ alert('登录'); } });*/ ... 阅读全文
posted @ 2015-12-16 15:22 破玉 阅读(281) 评论(0) 推荐(0) 编辑
摘要: $(function () { $('#search_button').button(); /*$('#reg_a').click(function() { $('#reg').dialog(); });*/ //同时打开两个对话框 /*$('#reg').dialog(); $('#login').dialog();*/ $('#reg').dialog(... 阅读全文
posted @ 2015-12-15 23:00 破玉 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 对话框(dialog),是 jQuery UI 非常重要的一个功能。它彻底的代替了 JavaScript 的 alert()、prompt()等方法,也避免了新窗口或页面的繁杂冗余一.开启多个 dialog 我们可以同时打开多个 dialog,只要设置不同的 id 即可实现。$('#reg').di... 阅读全文
posted @ 2015-12-15 22:54 破玉 阅读(249) 评论(0) 推荐(0) 编辑
摘要: ;(function ($) { //局部性的 /*$.fn.extend({ 'nav' : function (color) { $(this).find('.nav').css({ 'list-style' : 'none', 'margin' : 0, 'padding' : 0, 'display' : 'none', 'color... 阅读全文
posted @ 2015-12-14 20:37 破玉 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 插件(Plugin)也成为 jQuery 扩展(Extension),是一种遵循一定规范的应用程序接口编 写出来的程序。目前 jQuery 插件已超过几千种,由来自世界各地的开发者共同编写、验证 和完善。而对于 jQuery 开发者而言,直接使用这些插件将快速稳定架构系统,节约项目成 本 一.插件概 阅读全文
posted @ 2015-12-13 21:03 破玉 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Javaweb常用工具类及配置文件备份 做一个代码备份,以后常用到的。 hibernate工具类备份 package com.dly.service; /* * hibernate获取session 的工具类 */ import java.io.Serializable; import org.hi 阅读全文
posted @ 2015-12-13 20:39 破玉 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 做一个代码备份,以后常用到的。hibernate工具类备份package com.dly.service;/* * hibernate获取session 的工具类 */import java.io.Serializable;import org.hibernate.SessionFactory;im... 阅读全文
posted @ 2015-12-13 20:37 破玉 阅读(369) 评论(0) 推荐(0) 编辑
摘要: $(function () { /*var str=' jquery '; alert(str); alert($.trim(str));*/ /*var arr=['张三','李四','王五','麻溜']; $.each(arr,function(index,value){ $('#box').html($('#box').html()+(index+1... 阅读全文
posted @ 2015-12-12 21:17 破玉 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 工具函数是指直接依附于 jQuery 对象,针对 jQuery 对象本身定义的方法,即全局性 的函数。它的作用主要是提供比如字符串、数组、对象等操作方面的遍历。 一.字符串操作 在 jQuery 中,字符串的工具函数只有一个,就是去除字符串左右空格的工具函数: $.trim()。 //$.trim( 阅读全文
posted @ 2015-12-12 19:46 破玉 阅读(158) 评论(0) 推荐(0) 编辑
摘要: //数据处理 $('form input[type=button]').click(function() { //json处理 /*$.ajax({ type:'POST', url:'test.json', dataType:'json', data:$('form').serialize(), success: function(re... 阅读全文
posted @ 2015-12-11 20:49 破玉 阅读(208) 评论(0) 推荐(0) 编辑