@echooffclssetCLASSPATH=..\api\jogre.jarsetCLASSPATH=%CLASSPATH%;.setCLASSPATH=%CLASSPATH%;classessetCLASSPATH=%CLASSPATH%;lib\dom4j.jarjavaorg.jogre.server.JogreServer建表[code]createdatabasecon_test;usecon_test;createtabletest(idintnotnull,txtvarchar(70),primarykey(id),index(id));[/code]就两个字段,id加索引。...
http://www.jb51.net//article/16148.htm
这段时间在看《PHP和MySQLWeb开发》一书看到str_replace讲解,一段小提示写到:可以为str_replace的三个都使用数组传入,但讲解比较简单,于是决定自己的试验一下该函数在各个参数传入数组时的执行结果。函数原型:mixedstr_replace(mixedneedle,mixednew_needle,mixedhaystack[,int&count]);needle:要被替换的字符串,new_needle:替换用的字符串,haystack:操作字符串,count:替换次数【可选参数】我们重点试验前三个在使用数组是的执行方式:在都不使用数组时,该函数直接使用new_n...
http://www.jb51.net//article/16147.htm
a.xml:[code]<?xmlversion="1.0"encoding="gb2312"?><pnode><nodexmlId="0"/><nodexmlId="1"/><nodexmlId="2"/><nodexmlId="3"/><nodexmlId="4"/></pnode>[/code]javascript:[code]<scriptlanguage="javascript"type="text/javascript">//加载xml文档functionloadXML(xm...
http://www.jb51.net//article/16145.htm
举个小例子:[code]varthe_unevaled_answer="2+3";varthe_evaled_answer=eval("2+3");alert("theun-evaledansweris"+the_unevaled_answer+"andtheevaledansweris"+the_evaled_answer);[/code]如果你运行这段eval程序,你将会看到在JavaScript里字符串"2+3"实际上被执行了。所以当你把the_evaled_answer的值设成eval("2+3")时,JavaScript将会明白并把2和3的和返回给the_evaled_answer。...
http://www.jb51.net//article/16143.htm
[code]<scripttype="text/javascript">varscrollDelay=10;//数字越大速度越慢varScroll=document.getElementById("scroll");varScroll2=document.getElementById("scroll2");varcurrentTop=0,preTop=0,stoptime=0,stopscroll=false;varScrollChild=Scroll.getElementsByTagName("li");varScrollHeight=Scroll.offsetHeight;fu...
http://www.jb51.net//article/16133.htm
[code]<html><head><title>Untitled</title><styletype="text/css">.testCss{width:200px;height:300px;border:1pxredsolid;text-align:center;display:block;}.testCss1{width:300px;height:300px;border:1pxredsolid;text-align:center;display:block;}.testCss2{width:400px;height:300px...
http://www.jb51.net//article/16129.htm
Points Pixels Ems Percent6pt 8px 0.5em 50%7pt &nb...
http://www.jb51.net//article/16116.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=utf-8"/><styletype="text/css">ul{border:1pxso...
http://www.jb51.net//article/16113.htm
局部名字静态检测Python探测局部作用域的时候:是在python编译代码时检测,而不是通过他们在运行时的赋值。正常的情况下,没在函数中复制的名字将在包含它的模块中查找:>>>x=99>>>defselector():...printx...>>>selector()99但是:>>>defselector():...printx...x=100...>>>selector()Traceback(mostrecentcalllast):File"<stdin>",line1,in?File"&l...
http://www.jb51.net//article/16103.htm
booleanisGBK(Strings)throwsUnsupportedEncodingException{if(s.equals(newString(s.getBytes("gbk"))))returntrue;elsereturnfalse;}...
http://www.jb51.net//article/16098.htm
其实tomcat中配置数据源有好几中方式,很灵活,所以也容易相互整窜,个人认为比较简单的方法就是在tomcat下的conf文件夹下的server.xml增加[code]<Contextpath="/test"docBase="test"debug="99"reloadable="true"crossContext="true"verbosity="DEBUG"><Resourcename="jdbc/***"auth="Container"type="javax.sql.DataSource"password="****"driverClassName="com.micros...
http://www.jb51.net//article/16096.htm
