- 博客(16)
- 问答 (1)
- 收藏
- 关注
原创 jquery设置元素的readonly和disabled
[code="java"]Jquery的api中提供了对元素应用disabled和readonly属性的方法,在这里记录下。如下: 1.readonly $('input').attr("readonly","readonly")//将input元素设置为readonly $('input').removeAttr("readonly");//去除input元素的reado...
2013-07-05 18:12:37
165
spring注入web端校验类
首先这是针对于SPRING3.0的例子(注解);再次也是批量校验的方式:1.配置好附件内容2.validate类:[code="java"]package com.guohualife.rcms.riskGrade.web.controller.validate;import java.util.List;import org.apache.commons.lang.S...
2013-07-04 19:46:47
219
原创 jquery常用语法
[code="java"]$(obj).css("display","");//显示对象$(obj, window.dialogArguments).css("display","");//显示父页面对象//计算对象ID为serialNumber的checkbox选中的有几个$('input[type=checkbox][id=serialNumber]').filter(func...
2013-07-04 19:34:27
210
原创 正则表达式整理大全
[code="java"]方法/步骤整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。
2013-07-02 18:26:59
158
原创 jquery 动态表相关
[code="java"]jquery 点击button 然后获取所在是第几行:$('#delRuleButton').click(function(){ var rowIndex = $(this).closest("tr").index(); alert('当前行数为='+rowIndex);});如何解决rowspan = 4 行情况 的删除://点击...
2013-07-01 15:54:47
108
JQUERY获取checkbox选中值
获取复选框:JSP:[code="java"][/code]JS:[code="java"]$('input[type=checkbox][id=selQuesBankId]').each(function(){ if($(this).attr("checked")==true){ var v = $(this).attr("value"); var thisRea...
2013-07-01 14:39:56
91
丽江一行
最近刚从【云南-丽江】旅游回来,发现外面的世界真的很精彩,比码农的生活丰富多了。喜欢那里的美景,喜欢那里纯朴的人,喜欢那边人们内心的平静及安逸,很向往也能有这种日子。 第一天一大早5点就起床了,因为要赶机,大概6点左右到了机场,准备了下机票及托运行李,很快在7点半的时候飞机准备起飞了,我们的第一站是先到昆明。大概11点左右到了昆明长水国际机场,然后在坐机场大巴到了昆明火车站,一...
2013-05-07 16:10:40
224
原创 以日期为准,往前推X天工作日的日期
[code="java"]--******************************************************************************* --功能说明: 以日期为准,往前推X天工作日的日期 --取ntl_ot_work_calendar表来确定该日期是否在表中存在: --如果该记录在表中存在...
2012-11-27 15:07:07
706
原创 模仿摩尔定律和Proebsting定律
[b]引用【我不断的听到各种关于“软件危机”的警言,以及关于软件开发缺少过程规范的批评。我做编程工作超过15年,我认为这些言论基本上都是错的:我确信我能在很短的时间里用如今的开发工具复制出15年前一个不错的程序员开发出的东西。】[/b]模仿摩尔定律和Proebsting定律(这个不像是预言,更像是挑唆),我要给出的定律是:程序员的开发效率每6年提高一倍。为了证实我这个定律里的数...
2012-07-31 13:17:09
287
原创 spring事务配置是在业务逻辑层还是dao层?
spring事务配置是在业务逻辑层还是dao层?业务逻辑层和dao层都可以配置事务处理,如果一个service调用多个dao,它们如果是一个事务,那么事务应该配置业务逻辑层,否则配置在dao层就可以了。配置到dao层 PROPAGATION_REQUIRED PRO...
2012-06-12 10:01:42
716
原创 jQuery 获取和设置select下拉框
[code="java"]获取select 选中的 text : $("#ddlRegType").find("option:selected").text(); 获取select选中的 value: $("#ddlRegType ").val(); 获取select选中的索引: $("#ddlRegType ").get(0).selectedIndex;设...
2011-08-12 10:33:53
108
原创 Spring Interview Questions
[b]1) Explain about spring applications framework?[/b]Spring architecture helps you to manage your business objects. Implementation part of the spring is easy because it helps you to introduce it in...
2011-07-13 00:45:31
146
原创 JSP Interview Questions
[b]1) Explain and state about JSP?[/b]Java server pages are meant to generate dynamic content in response to the user query. This technology helps you to interact with the user very effectively. Cer...
2011-07-13 00:44:47
257
Java Patterns Interview Questions,interview
[b]1) Explain and detail about Java patterns?[/b]Patterns are very useful programming technique to a programmer. They tend to make solutions easier by creating a design pattern which can be used by ...
2011-07-13 00:43:40
130
Job Interview Questions
[size=medium][b]Many companies have two kinds of interviewers one deals with the general process of the interview and the other tests you about your technical capabilities. There would be questions co...
2011-07-13 00:36:13
254
空空如也
如何用jquery给列表中的<div>赋值
2011-07-07
TA创建的收藏夹 TA关注的收藏夹
TA关注的人