摘要: 转自:https://stackoverflow.com/questions/1179874/what is the difference between bindparam and bindvalue answer 5077108 PDOStatement::bindParam 与 PDOStat 阅读全文
posted @ 2017-11-17 14:49 hopher 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/Wayou/p/es6_new_features.html 本文基于 "lukehoban" / " es6features " ,同时参考了大量博客资料,具体见文末引用。 ES6( "ECMAScript" 6)是即将到来的新版本JavaScr 阅读全文
posted @ 2017-11-17 09:55 hopher 阅读(170) 评论(0) 推荐(0) 编辑
摘要: ``` /** * 正则Group匹配 * 匹配url中 :id 等占位符字段 */ function getMatches (string) { let matches = [] let regex = /(:[a-z_]+)/ let match = regex.exec(string) while (match !== null) { matches.push(... 阅读全文
posted @ 2017-11-17 09:12 hopher 阅读(1950) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/wgq123/p/6529450.html 一、冒泡排序 原理:对一组数据,比较相邻数据的大小,将值小数据在前面,值大的数据放在后面。 (以下都是升序排列,即从小到大排列) 举例说明: $arr = array(6, 3, 8, 2, 9, 1) 阅读全文
posted @ 2017-11-13 22:35 hopher 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 淘宝安装 安装淘宝镜像 阅读全文
posted @ 2017-11-13 11:48 hopher 阅读(894) 评论(0) 推荐(0) 编辑
摘要: 我有一个普通的web项目,想在这个项目中调用WorkerMan的接口,给客户端推送数据。 http://doc.workerman.net/315240 http://wenda.workerman.net/?/question/508 "集群推送" 阅读全文
posted @ 2017-10-19 11:21 hopher 阅读(719) 评论(0) 推荐(0) 编辑
摘要: ceil(x) ceil() 函数向上舍入为最接近的整数。 写分页代码时求总页数时很方便 阅读全文
posted @ 2017-10-18 21:43 hopher 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 示例 参考文献 http://www.cnblogs.com/kissdodog/archive/2012/12/22/2829489.html http://tools.jb51.net/tools/Escape.asp http://tool.lu/js/ 阅读全文
posted @ 2017-10-17 11:28 hopher 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 后端代码 push.php 启动后端服务 前端接收推送的js代码 后端推送消息的代码 资料 http://wenda.workerman.net/?/question/508 阅读全文
posted @ 2017-10-15 21:07 hopher 阅读(2800) 评论(0) 推荐(0) 编辑
摘要: ``` ob_start(); debug_print_backtrace(); $trace = ob_get_contents(); ob_end_clean(); file_put_contents("/tmp/debug", $trace."\n", 8); ``` 阅读全文
posted @ 2017-10-15 19:09 hopher 阅读(381) 评论(0) 推荐(0) 编辑