- 博客(3)
- 收藏
- 关注
原创 解决截取中文字符出现乱码的函数
以下函数适用utf-8 function TRC($str,$len){ global $TRC_TYPE; if(strlen($str) for($i=0;$i $temp_str=substr($str,0,1); if(ord($temp_str)
2011-02-22 15:57:00 449 1
原创 一些JS的操作技巧
<br />各类浏览器在JS的navigator.userAgent.toLowerCase()中显示结果<br />1 火狐 mozilla/5.0 (windows; u; windows nt 5.1; zh-cn; rv:1.9.0.10) gecko/2009042316 firefox/3.0.10 qqdownload/1.7 <br />2 IE8 mozilla/4.0 (compatible; msie 8.0; windows nt 5.1; trident/4.0; .net clr
2011-02-21 11:49:00 450
原创 Mysql Cluster操作记录
58.129.0.151 或 58.129.0.158 johntest数据库NDBCluster引擎在进行join操作时,开销巨大,应避免使用一、常用查看命令show table status where name='tb01'; 或 show table status;show create table xxx;show variables like '%max%'; show variables like 'datadir'; 可显示数据库文件存储位置 show variables like 'log
2011-02-06 17:05:00 531
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人