`
opportunity
  • 浏览: 11770 次
  • 性别: Icon_minigender_2
  • 来自: 火星
社区版块
存档分类
最新评论
文章列表
Jquery的api中提供了对元素应用disabled和readonly属性的方法,在这里记录下。如下: 1.readonly   $('input').attr("readonly","readonly")//将input元素设置为readonly   $('input').removeAttr("readonly");//去除input元素的readonly属性 if($('input').attr("readonly")==true)//判断input元素是否已经设置了readonly ...
首先这是针对于SPRING3.0的例子(注解);再次也是批量校验的方式: 1.配置好附件内容 2.validate类: package com.guohualife.rcms.riskGrade.web.controller.validate; import java.util.List; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Component; import com.guohualife.rcms.common.api.utils.CheckVal ...

jquery常用语法

$(obj).css("display","");//显示对象 $(obj, window.dialogArguments).css("display","");//显示父页面对象 //计算对象ID为serialNumber的checkbox选中的有几个 $('input[type=checkbox][id=serialNumber]').filter(function(){return $(this).attr("checked")==true}).size();
方法/步骤 整数或者小数:^[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]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数: ...

jquery 动态表相关

jquery 点击button 然后获取所在是第几行: $('#delRuleButton').click(function(){ var rowIndex = $(this).closest("tr").index(); alert('当前行数为='+rowIndex); }); 如何解决rowspan = 4 行情况 的删除: //点击【删除评分规则】按钮 $('#delRuleButton').click(function(){ hintMsg("addRuleButton", "") ...

思维导图

MindMapper very nice!可直接的显示出关联关系,方便自己在写文档时思维结构清晰
获取复选框: JSP: <input type="checkbox" id="selQuesBankId" name="qualitativeRuleList[X].selQuesBankId" readOptionNum="${qualitativeRule.optionNum}" value="${qualitativeRule.questionBankId}"/> JS: $('input[type=checkbox][id=selQuesBankId]').each(funct ...
    最近刚从【云南-丽江】旅游回来,发现外面的世界真的很精彩,比码农的生活丰富多了。喜欢那里的美景,喜欢那里纯朴的人,喜欢那边人们内心的平静及安逸,很向往也能有这种日子。      第一天一大早5点就起床了,因为要赶机,大概6点左右到了机场,准备了下机票及托运行李,很快在7点半的时候飞机准备起飞了,我们的第一站是先到昆明。大概11点左右到了昆明长水国际机场,然后在坐机场大巴到了昆明火车站,一路上大巴里有位大姐姐一直在给我们介绍这边的旅游景点,态度超级好,有什么问题举手,马上过来回答你。呵呵,这倒还挺好的。到了一个地方嘛,肯定会去尝尝当地很有特色的,要说有特色,就属云南的过桥米线了。她推荐我们 ...
--******************************************************************************* --功能说明: 以日期为准,往前推X天工作日的日期 --取ntl_ot_work_calendar表来确定该日期是否在表中存在: --如果该记录在表中存在,判断是否为工作日; --如果该记录在表中不存在,则默认为工作日 --参数说明:假设传入2012-09-10号,2天,得到日期为2012-09-06(7号,8号为休息日) --调用函数: ...
引用【我不断的听到各种关于“软件危机”的警言,以及关于软件开发缺少过程规范的批评。我做编程工作超过15年,我认为这些言论基本上都是错的:我确信我能在很短的时间里用如今的开发工具复制出15年前一个不错的程序员开发出的东西。】 模仿摩尔定律和Proebsting定律(这个不像是预言,更像是挑唆),我要给出的定律是:程序员的开发效率每6年提高一倍。 为了证实我这个定律里的数字部分,请注意下面我的发现。在1972年的《在分解模块化系统中用到的规范(On the Criteria to Be Used in Decomposing Systems into Modules)》这篇经典论文里,作者D ...
spring事务配置是在业务逻辑层还是dao层? 业务逻辑层和dao层都可以配置事务处理,如果一个service调用多个dao,它们如果是一个事务,那么事务应该配置业务逻辑层,否则配置在dao层就可以了。 配置到dao层 <bean id="customerDaoProxy"    class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">    <property name="transactionManager&quo ...
获取select 选中的 text : $("#ddlRegType").find("option:selected").text(); 获取select选中的 value: $("#ddlRegType ").val(); 获取select选中的索引: $("#ddlRegType ").get(0).selectedIndex; 设置select: 设置select 选中的索引: $("#ddlRegType ").get(0).selecte ...
1) Explain about spring applications framework? Spring architecture helps you to manage your business objects. Implementation part of the spring is easy because it helps you to introduce it in the middle of the objects. This framework is easy to implement in testing conditions. This is used by many l ...
1) Explain and state about JSP? 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. Certain Java code elements and predefined actions are embedded into the functioning of the pages which help in g ...
1) Explain and detail about Java patterns? 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 a different developer other than the creator. They function as problem solving documentation. Solutions offer ...
Global site tag (gtag.js) - Google Analytics