摘要: /* * 函数说明:截取指定长度的字符串 * utf-8专用 汉字和大写字母长度算1,其它字符长度算0.5 * * @param string $str 原字符串 * @param int $len 截取长度 * @param string $etc 省略字符... 阅读全文
posted @ 2014-09-20 17:17 半颠者 阅读(516) 评论(0) 推荐(0) 编辑
摘要: *单例模式不能通过 new 类名(); 来实例化对象class Person{ private static $interion; private $pop = array(); private function __construct(){} public function getInterion... 阅读全文
posted @ 2014-09-20 16:59 半颠者 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: http://www.w3school.com.cn/jsref/dom_obj_image.asp demo1--http://www.bokicabo.com/en/04/ 阅读全文
posted @ 2014-09-20 16:17 半颠者 阅读(202) 评论(0) 推荐(0) 编辑