摘要: var name = window.location.search.substr(4,30);//name = decodeURI(name);//使用示例document.getElementById('username').innerHTML = decodeURI(name); 阅读全文
posted @ 2014-12-02 23:28 KoMiles 阅读(494) 评论(0) 推荐(0) 编辑
摘要: //判断传入的字符是否是utf-8function is_utf8($word){if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}... 阅读全文
posted @ 2014-12-02 15:17 KoMiles 阅读(1134) 评论(0) 推荐(0) 编辑