上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页
摘要: 伪对象形式 app = function () { console.log("我是一个初始化的app对象"); }; app.get=function () { console.log('这是一个app的get方法'); }; app.post = function () { console.log 阅读全文
posted @ 2019-11-22 22:02 saintdingtheGreat 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 一.开启一文件,这里暂且命名为aexpressclass.js 声明一个app类,用来模仿http模块中的回调函数 //var route = require('http-route'); var url = require('url'); //var app = new route(); var 阅读全文
posted @ 2019-11-17 02:36 saintdingtheGreat 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 怎么,觉得pecl下一个扩展包,phpize make make install php.ini里引用一下 mongodb.so就万事大吉了? Deeply Sorry!看到MongoDB\Driver\Manager not found 的提示后,估计你除了想砸电脑之外就是想拿着双筒霰弹枪 找ph 阅读全文
posted @ 2019-11-14 16:16 saintdingtheGreat 阅读(132) 评论(0) 推荐(0) 编辑
摘要: ps -ef|grep "myswooleserver.php"| grep -v "grep" | wc -l 4 cpc@cpc-Aspire-6935:~/Downloads$ ps -ef|grep "myswooleserver.php"| grep -v "grep" cpc 16849 阅读全文
posted @ 2019-11-10 15:22 saintdingtheGreat 阅读(150) 评论(0) 推荐(0) 编辑
摘要: pika 实现consumer 阅读全文
posted @ 2019-10-29 19:22 saintdingtheGreat 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 事件广播 发送方调用emit方法,接收方调用on方法,无论发送方或是接收方,都会工作在一个频道 接收方 回调函数 阅读全文
posted @ 2019-10-25 12:44 saintdingtheGreat 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 有时候我们在windows上会保存一些中文文字信息文件,然而由于编码集的差异,这文件在linux上显示为乱码,其中一种解决方法是node.js的iconv模块 模块输出语句module.exports 引用时,必须声明一个变量接收引入的模块 阅读全文
posted @ 2019-10-25 00:16 saintdingtheGreat 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 缘由:为了更好的体验swoole组件优良的协程Mysql客户端,实现更好的并发设计;写了一个小程序。 环境准备: 没有采用任何框架,只是使用了smarty模版,来渲染后端php响应的数据,在一个html文件中有如下实现 html部分 原计划点击提交按钮后,由jquery函数postclick()将请 阅读全文
posted @ 2019-10-11 18:11 saintdingtheGreat 阅读(1520) 评论(0) 推荐(0) 编辑
摘要: 注意!任何swoole函数都应该包含在go(function(){}) 经典查询方法query() 增强型 防止SQL注入攻击的方法 增强型 带参数的查询样例 插入语句 普通版本 插入语句 带预先处理 阅读全文
posted @ 2019-10-08 14:51 saintdingtheGreat 阅读(890) 评论(0) 推荐(0) 编辑
摘要: RuntimeError 输出结果: who is he 输出结果: i love 程劲这就是我的男神 如果这样写,则执行结果会很不优雅 输出结果: 阅读全文
posted @ 2019-10-06 14:51 saintdingtheGreat 阅读(10109) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页