even

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2018年10月6日

摘要: 1、addcslashes 2、addslashes 与 stripslashes 3、bin2hex与hex2bin函数 bin2hex:表示把ASCII码字符的字符串转成十六进制 hex2bin:是对bin2hex函数的反转 4、chunk_split chunk_split(string,le 阅读全文
posted @ 2018-10-06 16:29 even_blogs 阅读(264) 评论(0) 推荐(0) 编辑

摘要: 1、声明报错的方法,以及相对应的页面 //把数据库的调用方法配置到请求中 server.use((req, res, next) => { //把数据库存入req中 req.db = db; //把报错方法存入res中 res.showError = code => { switch (code) 阅读全文
posted @ 2018-10-06 09:37 even_blogs 阅读(942) 评论(0) 推荐(0) 编辑