会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
saintdingtheGreat
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
13
14
···
38
下一页
2019年11月22日
node.js中允许的app对象声明方式
摘要: 伪对象形式 app = function () { console.log("我是一个初始化的app对象"); }; app.get=function () { console.log('这是一个app的get方法'); }; app.post = function () { console.log
阅读全文
posted @ 2019-11-22 22:02 saintdingtheGreat
阅读(314)
评论(0)
推荐(0)
2019年11月17日
express框架封装前戏
摘要: 一.开启一文件,这里暂且命名为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
阅读(385)
评论(0)
推荐(0)
2019年11月14日
怎奈风云多变换,骚完一波还一波,记PHP mongodb驱动的2019年11月用法
摘要: 怎么,觉得pecl下一个扩展包,phpize make make install php.ini里引用一下 mongodb.so就万事大吉了? Deeply Sorry!看到MongoDB\Driver\Manager not found 的提示后,估计你除了想砸电脑之外就是想拿着双筒霰弹枪 找ph
阅读全文
posted @ 2019-11-14 16:16 saintdingtheGreat
阅读(141)
评论(0)
推荐(0)
2019年11月10日
linux ps sample
摘要: 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
阅读(154)
评论(0)
推荐(0)
2019年10月29日
利用python pika库实现rabbitmq客户端
摘要: pika 实现consumer
阅读全文
posted @ 2019-10-29 19:22 saintdingtheGreat
阅读(708)
评论(0)
推荐(0)
2019年10月25日
node.js接收异步任务结果的两种方法----callback和事件广播
摘要: 事件广播 发送方调用emit方法,接收方调用on方法,无论发送方或是接收方,都会工作在一个频道 接收方 回调函数
阅读全文
posted @ 2019-10-25 12:44 saintdingtheGreat
阅读(426)
评论(0)
推荐(0)
node.js的iconv模块----在linux上读取windows编码文件
摘要: 有时候我们在windows上会保存一些中文文字信息文件,然而由于编码集的差异,这文件在linux上显示为乱码,其中一种解决方法是node.js的iconv模块 模块输出语句module.exports 引用时,必须声明一个变量接收引入的模块
阅读全文
posted @ 2019-10-25 00:16 saintdingtheGreat
阅读(860)
评论(0)
推荐(0)
2019年10月11日
swoole,http\server 跨域---记一次php网站跨域访问上机实验
摘要: 缘由:为了更好的体验swoole组件优良的协程Mysql客户端,实现更好的并发设计;写了一个小程序。 环境准备: 没有采用任何框架,只是使用了smarty模版,来渲染后端php响应的数据,在一个html文件中有如下实现 html部分 原计划点击提交按钮后,由jquery函数postclick()将请
阅读全文
posted @ 2019-10-11 18:11 saintdingtheGreat
阅读(1588)
评论(0)
推荐(0)
2019年10月8日
swoole组件----mysql查询,插入数据
摘要: 注意!任何swoole函数都应该包含在go(function(){}) 经典查询方法query() 增强型 防止SQL注入攻击的方法 增强型 带参数的查询样例 插入语句 普通版本 插入语句 带预先处理
阅读全文
posted @ 2019-10-08 14:51 saintdingtheGreat
阅读(951)
评论(0)
推荐(0)
2019年10月6日
如何使用python异常---runtimeError方法
摘要: RuntimeError 输出结果: who is he 输出结果: i love 程劲这就是我的男神 如果这样写,则执行结果会很不优雅 输出结果:
阅读全文
posted @ 2019-10-06 14:51 saintdingtheGreat
阅读(10314)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
38
下一页
公告