摘要: 转自http://zhengyh2008.blog.163.com/blog/static/13894713201003041633526/jquery ajax 回调函数 返回值js文件:$.ajaxSetup({ async: false });function oncheck(oid){ var rs=true; if(oid=="stunum") { $.post("util.php",checkString(oid),function(data){if(decodeURI(data).trim()== 'used'){ aler 阅读全文
posted @ 2011-12-19 22:32 黎明露珠 阅读(1609) 评论(0) 推荐(0) 编辑
摘要: 1.java类中的静态域与静态方法:静态域与静态方法需要使用static关键字,静态域:将域定于为static,每个类中都有这样一个域,而每个对象对该域有一个自己的拷贝,publicclassEmployee{privatestaticintnextID=1;privateintid;publicintgetId(){returnid;}publicvoidsetId(intid){nextID++;this.id=nextID;}}Employee的所有实例共享一个nextID,各拥有一个id.静态常量:classMath{publicstaticfinaldoublePI=3.141592 阅读全文
posted @ 2011-12-19 10:55 黎明露珠 阅读(311) 评论(0) 推荐(0) 编辑