脚 本 之 家 www.jb51.net
页面导航:  不限条件-->b_
本地搜索:
1.简介这是一部指导我们如何使用PearDB扩展。PearDB,提供这样一系列的类:n数据库抽象n高级错误处理机制n以及其它2.下载、安装Pear由于现在Pear项目仍处于紧锣密鼓的开发之中,所以得到它的最好办法就是从CVS获得(PearDB发行包已经跟随PHP4.0.6以后版本捆绑发布)。所以,我们只需要把Pear的根目录放到php.ini配置文件include_path中。也可以通过这样设置:_set('include_path','/pear_base_dir').以下是strpbystep示例:存放Pear的目录:#cd/usr/local/lib用“phpfi“口令登录:#cvs-d...
http://www.jb51.net//article/16554.htm
所以自己也下了一个来学习,把之前写的几个JS代码都转换成JQuery,既能保证代码的清晰,也保证了代码的通用性,真是一举两得啊,由于是初学者,所以代码有许多的不足,还请大家多多指正:)1、实现图片翻转效果,DW本身提供了这个功能,不过还是自己写的好用,呵呵。之前写的方式比较麻烦,代码也比较乱,用JQuery改造后可以使其更加清晰,核心代码如下:JS代码[code]<scripttype="text/javascript"><!--$(document).ready(function(){$("#Navliaimg").mouseover(function(){varm=$(t...
http://www.jb51.net//article/16525.htm
解决办法:禁用服务Win2003WinHTTPWebProxyAuto-DiscoveryService。双击右下角的时间,在“Internet时间”选项卡中将“自动与Internet时间服务器同步”选项去掉。...
http://www.jb51.net//article/16518.htm
[code]<divid="test"><ahref="#">test</a></div><divid="result"></div><scripttype="text/javascript">(function(){vartest=document.getElementById('test');alert(test.innerHTML);varresult=document.getElementById('result');result.innerHTML=test.innerHTML;alert(resul...
http://www.jb51.net//article/16515.htm
Page3概述¨       解释执行:Python,Ruby,交互性很好;¨        编译执行:Pascal,C,速度较快。n        本地执行,如C,C++;n        虚拟机执行,如Java,C#。 ¨    &nb...
http://www.jb51.net//article/16497.htm
[html]<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>js地区选择</title><style...
http://www.jb51.net//article/16492.htm
[code]privateboolCheckAuthentication(){//WARNING:DONOTsimplyreturn"true".Bydoingso,youareallowing//"anyone"touploadandlistthefilesinyourserver.Youmustimplement//somekindofsessionvalidationhere.Evensomethingverysimpleas...////return(Session["IsAuthorized"]!=null&&(bool)Session["IsAuthorized"]...
http://www.jb51.net//article/16487.htm
以下程序直接通过HibernateAPI批量更新CUSTOMERS表中年龄大于零的所有记录的AGE字段:tx=session.beginTransaction();Iteratorcustomers=session.find("fromCustomercwherec.age>0").iterator();while(customers.hasNext()){Customercustomer=(Customer)customers.next();customer.setAge(customer.getAge()+1);}tx.commit();session.close();如果CUSTO...
http://www.jb51.net//article/16483.htm
[code]Usertableuser=null;Sessionsession=HibernateSessionFactory.getSession();Stringsql="fromUsertableasuserwhereuser.username=?";Queryq=session.createQuery(sql);q.setString(0,username);Listl=q.list();Iteratorite=l.iterator();if(ite.hasNext()){user=(Usertable)ite.next();}returnuser;[/code]查询完以后才能更新用S...
http://www.jb51.net//article/16480.htm
一个PO有三种状态:1、未被持久化的VO此时就是一个内存对象VO,由JVM管理生命周期2、已被持久化的PO,并且在Session生命周期内此时映射数据库数据,由数据库管理生命周期3、曾被持久化过,但现在和Session已经detached了,以VO的身份在运行这种和Session已经detached的PO还能够进入另一个Session,继续进行PO状态管理,此时它就成为PO的第二种状态了。这种PO实际上是跨了Session进行了状态维护的。在传统的JDO1.x中,PO只有前面两种状态,一个PO一旦脱离PM,就丧失了状态了,不再和数据库数据关联,成为一个纯粹的内存VO,它即使进入一个新的PM,也...
http://www.jb51.net//article/16479.htm
例如:[code]HibernateTest.javaimportonlyfun.caterpillar.*;importnet.sf.hibernate.*;importnet.sf.hibernate.cfg.*;importjava.util.*;publicclassHibernateTest{publicstaticvoidmain(String[]args)throwsHibernateException{SessionFactorysessionFactory=newConfiguration().configure().buildSessionFactory();Session...
http://www.jb51.net//article/16478.htm
共有:2161/10,当前3/217页  [首页] [上一页] 1 2 3 4 5 6 7 8 [下一页]  [尾页] 转到: