??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品无码日韩国产不卡av,亚洲人成毛片线播放,亚洲精品无码专区在线播放 http://www.tkk7.com/kevinwu/zh-cn Sun, 11 May 2025 05:54:44 GMT Sun, 11 May 2025 05:54:44 GMT 60 AJAX技术检用户名是否已被一? http://www.tkk7.com/kevinwu/archive/2007/04/23/113014.html吴涛?/dc:creator>吴涛?/author>Mon, 23 Apr 2007 11:10:00 GMT http://www.tkk7.com/kevinwu/archive/2007/04/23/113014.html http://www.tkk7.com/kevinwu/comments/113014.html http://www.tkk7.com/kevinwu/archive/2007/04/23/113014.html#Feedback 0 http://www.tkk7.com/kevinwu/comments/commentRss/113014.html http://www.tkk7.com/kevinwu/services/trackbacks/113014.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> /* Create a new XMLHttpRequest object to talk to the Web server */ function getbw() { var xmlhttp; try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp=new ActiveXObject("Microsoft .XMLHTTP"); } catch (oc) { xmlhttp=null; } } if(!xmlhttp && typeof XMLHttpRequest != "undefined") xmlhttp = new XMLHttpRequest(); return xmlhttp; } function IDRequest(n) { xmlhttp=getbw(); //定义收到服务?/strong>的响应后需要执行的JavaScript函数 url=n+document.getElementById('163id').value;//定义|址参数 alert(url); xmlhttp.open("GET",url, true); xmlhttp.send(null); //xmlhttp_request=getXMLRequester();//调用创徏XMLHttpRequest的函?nbsp; xmlhttp.onreadystatechange = doContents;//调用doContents函数 } function doContents() { if (xmlhttp.readyState == 4) {// 收到完整的服务器响应 if (xmlhttp.status == 200) {//HTTP服务器响应的值OK document.getElementById('message').innerHTML = xmlhttp.responseText;//服务器q回的字W串写到面中ID为message的区?nbsp; } else { alert(xmlhttp.status); } } } </script> </head> <body> <input type="text" id="163id" /> <input type="button" value="校验" onclick="IDRequest('check.php?userid=')" /> <div id="message"></div> </body> </html> ]]> javascript生成上传囑փ预览功能 http://www.tkk7.com/kevinwu/archive/2007/04/23/113013.html吴涛?/dc:creator>吴涛?/author>Mon, 23 Apr 2007 11:09:00 GMT http://www.tkk7.com/kevinwu/archive/2007/04/23/113013.html http://www.tkk7.com/kevinwu/comments/113013.html http://www.tkk7.com/kevinwu/archive/2007/04/23/113013.html#Feedback 0 http://www.tkk7.com/kevinwu/comments/commentRss/113013.html http://www.tkk7.com/kevinwu/services/trackbacks/113013.html <html xmlns="<head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>javascript生成上传囑փ预览功能</title> </head> <body> <INPUT
id=photo1 style="WIDTH: 350px"
onpropertychange="if(event.propertyName=='value')
preview1.src=photo1.value.replace(/\\/g,'/')" type=file name=photo1> <br /> <IMG id=preview1 height=66 src="囄博客-上传囄_files/sampe3.jpg" width=66 name=preview1> </body> </html> ]]> 一个将utf-8转ؓgb2312的简单程?/title> http://www.tkk7.com/kevinwu/archive/2007/04/16/111059.html吴涛?/dc:creator>吴涛?/author>Mon, 16 Apr 2007 11:38:00 GMT http://www.tkk7.com/kevinwu/archive/2007/04/16/111059.html http://www.tkk7.com/kevinwu/comments/111059.html http://www.tkk7.com/kevinwu/archive/2007/04/16/111059.html#Feedback 0 http://www.tkk7.com/kevinwu/comments/commentRss/111059.html http://www.tkk7.com/kevinwu/services/trackbacks/111059.html //utf-8->gb2312函数Q本E序没有用到Q仅供参?br>function u2utf82gb($c){ $str=""; if ($c < 0x80) { $str.=$c; } else if ($c < 0x800) { $str.=chr(0xC0 | $c>>6); $str.=chr(0x80 | $c & 0x3F); } else if ($c < 0x10000) { $str.=chr(0xE0 | $c>>12); $str.=chr(0x80 | $c>>6 & 0x3F); $str.=chr(0x80 | $c & 0x3F); } else if ($c < 0x200000) { $str.=chr(0xF0 | $c>>18); $str.=chr(0x80 | $c>>12 & 0x3F); $str.=chr(0x80 | $c>>6 & 0x3F); $str.=chr(0x80 | $c & 0x3F); } return iconv('UTF-8', 'GB2312', $str); } function unescape($str) { $str = rawurldecode($str); preg_match_all("/(?:%u.{4})|.{4};|\d+;|.+/U",$str,$r); $ar = $r[0]; print_r($ar); foreach($ar as $k=>$v) { if(substr($v,0,2) == "%u") $ar[$k] = iconv("UCS-2","GB2312",pack("H4",substr($v,-4))); elseif(substr($v,0,3) == "") $ar[$k] = iconv("UCS-2","GB2312",pack("H4",substr($v,3,-1))); elseif(substr($v,0,2) == "") { echo substr($v,2,-1)."<br>"; $ar[$k] = iconv("UCS-2","GB2312",pack("n",substr($v,2,-1))); } } return join(" ",$ar); } //下面是{换功?br>$db = mysql_connect("localhost", "dbname", "password"); mysql_select_db("dbname",$db); $result = mysql_query("SELECT * FROM dede_archives",$db); if ($result === false) die("failed"); while ($fields = mysql_fetch_row($result)) { $con=$fields[10]; $con = iconv("UTF-8","GB2312",$con);//主要是iconv函数的?br> $update="update dede_archives set title='".$con."' where ID=".$fields[0]; //echo $update; mysql_query($update); echo $fields[0]."OK"."<br />"; } ?> ]]> 使用mysql的replace函数替换字符?/title> http://www.tkk7.com/kevinwu/archive/2007/04/13/110470.html吴涛?/dc:creator>吴涛?/author>Fri, 13 Apr 2007 08:03:00 GMT http://www.tkk7.com/kevinwu/archive/2007/04/13/110470.html http://www.tkk7.com/kevinwu/comments/110470.html http://www.tkk7.com/kevinwu/archive/2007/04/13/110470.html#Feedback 6 http://www.tkk7.com/kevinwu/comments/commentRss/110470.html http://www.tkk7.com/kevinwu/services/trackbacks/110470.html 比如你要??tb1里面?f1字段的abc替换为def UPDATE tb1 SET f1=REPLACE(f1, 'abc', 'def'); REPLACE(str,from_str,to_str) 在字W串 str 中所有出现的字符?nbsp; from_str 均被 to_str替换Q然后返回这个字W串Q?nbsp; mysql> SELECT REPLACE('www.mysql.com', 'w', 'Ww'); -> 'WwWwWw.mysql.com' q个函数是多字节安全的?br> CZQ?br>UPDATE `dede_addonarticle` SET body = REPLACE ( body, '</td>', '' ); UPDATE `dede_addonarticle` SET body = REPLACE ( body, '</tr>', '' ); UPDATE `dede_addonarticle` SET body = REPLACE ( body, '<tr>', '' ); UPDATE `dede_archives` SET title= REPLACE ( title, '大洋新闻 - ', '' ); UPDATE `dede_addonarticle` SET body = REPLACE ( body, '../../../../../../', 'http://special.dayoo.com/meal/' ); mysql replace 用法1.replace intoreplace into table (id,name) values(‘1‘,‘aa‘),(‘2‘,‘bb‘) 此语句的作用是向表table中插入两条记录?br>2.replace(object, search,replace) 把object中出现search的全部替换ؓreplaceselect replace(‘www.163.com‘,‘w‘,‘Ww‘)--->WwW wWw.163.com 例:把表table中的name字段中的 aa替换为bbupdate table set name=replace(name,‘aa‘,‘bb‘) ]]> AtLeap中运用Mysql http://www.tkk7.com/kevinwu/archive/2007/03/29/107314.html吴涛?/dc:creator>吴涛?/author>Thu, 29 Mar 2007 11:46:00 GMT http://www.tkk7.com/kevinwu/archive/2007/03/29/107314.html http://www.tkk7.com/kevinwu/comments/107314.html http://www.tkk7.com/kevinwu/archive/2007/03/29/107314.html#Feedback 0 http://www.tkk7.com/kevinwu/comments/commentRss/107314.html http://www.tkk7.com/kevinwu/services/trackbacks/107314.html WINDOWS2003、JDK 1.5.0_11、ANT 1.6.5、Tomcat 5.0.27、MySQL4.1.10aQ?br />先设|好环境变量Q?br /> 2、数据库讄 #database.jar=${mysql.jar} #database.jar.name=${mysql.jar.name} #database.dir=${mysql.dir} #database.version=${mysql.version} #database.type=mysql #database.name=${webapp.name}_db #database.host=localhost #database.port=3306 #database.driver_class=com.mysql.jdbc.Driver #database.url=jdbc:${database.type}://${database.host}:${database.port}/${database.name}?characterEncoding=utf-8&useUnicode=true&autoReconnect=true #database.username=test #database.password=test #hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect 改ؓQ?br />database.jar=${mysql.jar}
database.jar.name=${mysql.jar.name}
database.dir=${mysql.dir}
database.version=${mysql.version}
database.type=mysql
database.name=${webapp.name}_db
database.host=localhost
database.port=3306
database.driver_class=com.mysql.jdbc.Driver
database.url=jdbc:${database.type}://${database.host}:${database.port}/${database.name}?characterEncoding=utf-8&useUnicode=true&autoReconnect=true
database.username=数据库用户名
database.password=数据库密?br />hibernate.dialect=org.hibernate.dialect.MySQLDialect在数据库初始化的q程中,提示${hibernate.transaction.factory_class}Q我在properties.xml中将 <entry key="hibernate.transaction.factory_class" value="${hibernate.transaction.factory_class}"/> 改ؓ <entry key="hibernate.transaction.factory_class" value="org.hibernate.transaction.JDBCTransactionFactory"/> 可以通过Q?/font> 3、服务器讄 1) # Jetty is embeded into AtLeap distribitive appserver.type=jetty5 appserver.http.port=8080 # in order to enable support HTTPS please reconfigure jettyplus.xml appserver.https.port=8443 # the memory sizes jetty.initialmemory=128m jetty.maxmemory=256m 改ؓQ?br /># Jetty is embeded into AtLeap distribitive #
appserver.type=jetty5 #
appserver.http.port=8080
# in order to enable support HTTPS please reconfigure jettyplus.xml #
appserver.https.port=8443
# the memory sizes # #
jetty.initialmemory=128m
jetty.maxmemory=256m 2) # Please specify tomcat5 or tomcat5.5 #appserver.type=tomcat5.5 #appserver.http.port=8080 #appserver.https.port=8443 #tomcat.manager.host=${appserver.host} #tomcat.manager.port=${appserver.http.port} #tomcat.manager.url=http://${tomcat.manager.host}:${tomcat.manager.port}/manager #tomcat.manager.username=manager #tomcat.manager.password=manager 改ؓQ?br /># Please specify tomcat5 or tomcat5.5 appserver.type=tomcat appserver.http.port=8080 appserver.https.port=8443 tomcat.manager.host=${appserver.host} tomcat.manager.port=${appserver.http.port} tomcat.manager.url=http://${tomcat.manager.host}:${tomcat.manager.port}/manager tomcat.manager.username=manager tomcat.manager.password=manager 4、部|设|?br /># Usually you do not need to specify below properties #tomcat.home=C:/TOOLS/java/jakarta-tomcat-5.5.7 #tomcat.app.base=${tomcat.home}/webapps #tomcat.service.name=Catalina #tomcat.work.dir=${tomcat.home}/work/${tomcat.service.name}/${appserver.host}/${context.doc.base} #tomcat.conf.dir=${tomcat.home}/conf/${tomcat.service.name}/${appserver.host} 改ؓQ?br /> # Usually you do not need to specify below properties tomcat.home=c:/tomcat tomcat.app.base=${tomcat.home}/webapps tomcat.service.name=Catalina tomcat.work.dir=${tomcat.home}/work/${tomcat.service.name}/${appserver.host}/${context.doc.base} tomcat.conf.dir=${tomcat.home}/conf/${tomcat.service.name}/${appserver.host} 回到build.xml所在的目录Q执行ant deployQ?br /> 5、测试运?br />http://localhost:8080/atleap 参考文:Blandware AtLeap 安装说明 ]]> AtLeap http://www.tkk7.com/kevinwu/archive/2007/03/29/107295.html吴涛?/dc:creator>吴涛?/author>Thu, 29 Mar 2007 10:23:00 GMT http://www.tkk7.com/kevinwu/archive/2007/03/29/107295.html http://www.tkk7.com/kevinwu/comments/107295.html http://www.tkk7.com/kevinwu/archive/2007/03/29/107295.html#Feedback 0 http://www.tkk7.com/kevinwu/comments/commentRss/107295.html http://www.tkk7.com/kevinwu/services/trackbacks/107295.html 有朋友说配置Mysqlq行比较Ҏ(gu)Q还没有试Q?br /> AtLeap支持多语aQ听说还获得了不奖Q应该是一个不错的CMSQ有I好好看看?br /> ]]>
վ֩ģ壺
þ99þóѲ |
Ƶֻ |
AVһһ |
ھƷ鶹վ91鶹
|
ѹ߹ۿ |
һ߹ۿ |
2022þùƷ鶹 |
AVþþƷ |
վѹۿ |
ͼƬ߹ۿ |
120Ů̬Ƶ |
ƷۺϾþþ
|
ƷִִˬAƬ |
18ۿƵ |
þvwww |
jizzѲ |
ƷWWWþþþþ |
һ |
ҹ˾Ƶ |
Ʒһ |
Դ߹ۿѸ |
AVר |
91Ƶ߹ۿѴȫ |
ҹƷһţӰԺ
|
ѹݮƵ߹ۿ |
ѹۿͰŮƵ |
Ʒվ߲ |
18վƵվ |
һվƵ |
ƷƵ |
һaƬػ߹ۿѿ |
պޱ̬ |
WWWƵ |
2022˾Ʒ
|
þƵƷ |
ŵ |
AëƬ |
ɫѿ |
ƷӰԺ |
ݺݺݰƵ
|
eeuss |