-
关于Method方法访问失败的有关问题的探究
关于Method方法访问失败的问题的探究packagecom.wingsoft;importjava.lang.reflect.Method;importcn.com.wingsoft.AccessTest;publicclassReflectTechnique{ publicstaticvoidmain(String[]args)throwsException{ AccessTestacces...
49
热度 -
手工制造Extjs (1) 类系统
手工打造Extjs(1)类系统 最近看了几本javascrpt方面的书(javascript高级程序设计,javascript设计模式),内容中讲到很多面向对象式开发也提到很多优秀的javascript框架, 我很是费解为什么就没有提到过Extjs,难道YUI跟Extjs有那么大得深仇大恨?。 转入正题,我特别喜欢Extjs4的类体系,所以就自己模仿的写了一个,我只是简单了解过extjs并...
106
热度 -
jQuery插件写法入门图书(Plugins/Authoring)
jQuery插件写法入门读物(Plugins/Authoring) jQuery插件写法入门读物(Plugins/Authoring)官网原文:http://docs.jquery.com/Plugins/Authoring译文转载源地址:http://www.52smap.com/2011/12/jquery%E6%8F%92%E4%BB%B6%E5%86%99%E6%B3%95%E5%85%A...
557
热度 -
JavaScript异步兑现
JavaScript异步实现 AsynchronousmethodqueuechaininginJavaScript Thursday,May6th,2010 Chaining .It’sanextremelypopularpatternthesedaysinJavaScript.It’seasilyachievedbycontinuallyreturningareferencetothes...
283
热度 -
jQuery插件开发示范:表单验证
jQuery插件开发示例:表单验证 上周写了一个页面,里面有一个很大的form,一个一个写验证太麻烦了,于是写了一个jQuery的表单验证插件。我希望达到这样的效果: ? 调用应该是链式的,如: $('#form').required('input1Name').maxlength('input1Name',7).required('input2Name').email('input2Nam...
202
热度 -
validationEngine 组合struts2 ajax验证
validationEngine结合struts2ajax验证 项目中用到validationEngine和stuts2,这篇文章值得借鉴(转),把原文中的一些东西改了下 ? ? validationEnginev2.0进行了重写,变化很大。 ? 首先说一下整个表单验证,使用简单的一行代码就能完成: $("#form.id").validationEngine('validate'); 这是我之前...
549
热度 -
validationEngine v2.0 组合struts2 ajax验证
validationEnginev2.0结合struts2ajax验证 validationEnginev2.0进行了重写,变化很大。 ? 首先说一下整个表单验证,使用简单的一行代码就能完成: $("#form.id").validationEngine('validate'); 这是我之前用的验证代码: varsuccess=true; $(formid+":text,"+formid+"sel...
484
热度 -
jquery 插件编纂
jquery插件编写 当你适应了jQuery,并且想学习怎么写自己的插件,好的,你真是个爱学习的人啊。使用插件和方法来扩展jQuery非常的强大,并且通过抽象你的大部分的聪明的方法到插件中你可以节约大量的开发时间。这篇文章会为你写插件显示最基本的技能,最佳实践和一些常遇到的错误。 开始:写jQuery的插件,开始在你的插件名字的属性中为jQuery.fn对象增加一个新的函数的属性:jQuery.f...
140
热度 -
Servlets & JSP Series 四 - Being a Servlet
Servlets&JSPSeries4-BeingaServlet ?Servlets&JSPSeries?4-BeingaServlet ? Container’soverallroleinoneservlet’slife:1.UserclicksalinkthathasaURLtoaservlettogeneratearequest;2.TheContainer“sees”...
680
热度 -
Eclipse/MyEclipse Java诠释模板设置详解
Eclipse/MyEclipseJava注释模板设置详解设置注释模板的入口:Window->Preference->Java->CodeStyle->CodeTemplate然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:文件(Files)注释标签:/**??*@Title:${file_name}*@Package${package_na...
3
热度 -
编撰velocity tool
编写velocitytool Thoseofyouwhowriteyourowncustomtoolsmaywanttomakeafewchangestoupgradeyourcustomtoolstodothingsthe"Tools2way".Here'safewquickstartsforthat,thoughthisdoesn'tcovereverything.Moredetailscan...
561
热度 -
Java接口解决方法
Java接口在java中如何解决在使用接口时而不实现所有的方法?求实列。java分享到:color='#FF8000'>------解决方案--------------------interfaceA{publicvoidfun1();publicvoidfun2();}//因为B类是抽象类,所以不能直接实例化abstractclassBimplementsA{publicvoidfun1(){}...
37
热度 -
关于synchronized关键字,该如何解决
关于synchronized关键字packageconcurrency2;importjava.util.concurrent.ExecutorService;importjava.util.concurrent.Executors;publicclassAtomicityTestimplementsRunnable{ privateinti=0; publicsynchronizedintget...
70
热度 -
关于protected,初学者有关问题
关于protected,菜鸟问题packageGreek;publicclassAlpha{protectedintiamprotected;protectedvoidprotectedMethod(){ System.out.println("protectedMethod"); }}packageGreek;classGamma{ voidaccessMethod() { ...
209
热度 -
android反射的运用
android反射的应用http://www.java2s.com/Code/Java/Reflection/MethodReflection.htmhttp://almondmendoza.com/2009/11/27/calling-private-methods-in-android/http://tutorials.jenkov.com/java-reflection/index.html...
84
热度 -
httpClient三个范例
httpClient三个实例 packagecn.com.test.wjj; importjava.io.IOException;importjava.io.UnsupportedEncodingException;importjava.net.URLDecoder; importorg.apache.commons.httpclient.HttpClient;importorg.apache.c...
101
热度 -
RESTful初探之5(The data layer)
RESTful初探之五(Thedatalayer) 原文:http://www.ibm.com/developerworks/java/tutorials/j-rest/section7.htmlThissectiondescribestheexistingdomainobjectsthatmaketheupdatalayerthatyourRESTfulservicewillreuse.这一章节...
455
热度 -
应用FCKeditorAPI与fckeditor交互
使用FCKeditorAPI与fckeditor交互 使用FCKeditorAPI与fckeditor交互作者:zccst1,获取name值,FCKeditorAPI.GetInstance('yourtextareaname').GetHTML();//整个domFCKeditorAPI.GetInstance('yourtextareaname').GetXHTML();//带标签也可以FCK...
103
热度 -
js原型的有关问题,很奇怪
js原型的问题,很奇怪User.prototype.sayHello=function(){ alert("hello"); } user.sayHello();这样的话弹出hello 但是我换一种方式 varuser=newUser();User.prototype={ sayHello:function(){ alert("hello"); } }user...
163
热度 -
eclipse 快捷键集锦
eclipse快捷键汇总1.自动生成方法的注释格式,例如/***@paramstr*@return*@throwsParseException*/快捷键是alt+shift+j,将光标放在方法名上,按快捷键。会生成上述方法注释的格式,具体内容还是要自己填写的。2.如我们希望在一个Java文件的开头设置作者信息、日期信息。方法一:Eclipse中设置在创建新类时自动生成注释windows-->...
35
热度