海子牛
ivywjhua · 共 11 篇文章
[置顶] Tips
一位前辈经验 --有目的的学习,学以致用,将来必有更好的发展。 learning spoken English from a classmate --speak following recordings and see English TV Show in spare time. 学习新东西 --先看中文入门 --动手, 一个大的相关练习 --对相应重要的东西查找英文资料准确了解 文献阅读(zz) 先看两篇综述,搞清过去未来; 再看具体文章,搞清技术方法; 阅读摘要为主,全文只能为辅; 书籍大多没用,别去浪费时间; (基本方法的书,如果用得着可以简单看) 文献看少没用,少说也要两百。 前端到…
2009-10-19 11:43 · misc · 评论(0)
javascript 内部对象
Object String Math Date Array Array:数组对象 Boolean BOOL型对象 Date:日期型对象 Function:函数型对象 Global:全局对象 Math:数学对象 Number:数值常数 Object:通用对象 RegExp:正则表达式 Error :错误对象
2010-03-03 22:31 · javascript · 评论(0)
java array list exception
array to list List list = Arrays.asList(array); decouple try catch and try finally try{ try{ //code } finally{ //code } catch(Exception ex){ //code }
2009-12-22 16:41 · core java · 评论(0)
vim tip
`. move to the last edit. # :%s/text/replacement text/g search through the entire document for text and replace it with replacement text. # :%s/text/replacement text/gc search through the entire document and confirm before replacing text.
2009-11-25 15:54 · misc · 评论(0)
java null cast
摘自 Java Language Specification The null reference can always be cast to any reference type.In practice, the programmer can ignore the null type and just pretend that null is merely a special literal that can be of any reference type. Object obj = null; String str = (String) obj; Integer a = (Intege…
2009-11-11 17:53 · core java · 评论(0)
java 访问修饰符
public > protected > package >private Access Levels Modifier Class Package Subclass World public Y Y Y Y protected Y Y Y N no modifier Y Y N N private Y N N N
2009-11-09 16:20 · core java · 评论(0)
jquery get filed value
var newEmail = $("input[@name=" + UIEntity.name + "newEmail]").val(); var newEmailVerify = $("input[@name=" + UIEntity.name + "newEmailVerify]").val();
2009-11-05 15:49 · javascript · 评论(0)
javascript var 与 非
var t = true; var f = false; var a = t && null; var b = f && null; var c = null && t; var d = null && f; alert("true null: " + a); alert("false null: " + b); alert("null true: " + c); alert("null false: " + d); var n = null; var xx = "xxx"; alert("! true: " + !t); alert("! false: " + !f); alert("! …
2009-11-04 18:21 · javascript · 评论(0)
java constructor 在构造子类时,一定会调用到父类的构造方法
sub class must call base class's constructor sub class will invoke base class's constructor implicityly if super constructor is undefined, must explicitly invoke another constructor 子类以一定要调用到父类方法。 子类可以隐式的调用父类默认的构造方法。 如果父类没有默认构造方法,必须显示调用。 Constructor call must be the first statement in the construct…
2009-10-22 17:02 · core java · 评论(0)
奇怪的 throws exception
org.springframework.mail.MailSender void send(SimpleMailMessage simpleMessage) throws MailException; private static JavaMailSender mailSender = null; mailSender = (JavaMailSender) xxx; public static void sendMail(SimpleMailMessage msg) { mailSender.send(msg); } 为什么sendMail不需要catch exception 或者 thro…
2009-10-15 12:35 · Java EE · 评论(1)