上一页 1 2 3 4 5 6 ··· 8 下一页
  2021年2月7日
摘要: MySQL 嵌套事务、PHP+MySQL嵌套事务、ThinkPHP 嵌套事务、Laravel 嵌套事务 在 MySQL 的官方文档中有明确的说明不支持嵌套事务: Transactions cannot be nested. This is a consequence of the implicit 阅读全文
posted @ 2021-02-07 12:40 sochishun 阅读(661) 评论(0) 推荐(0) 编辑
  2021年2月6日
摘要: 查询数据表结构 select TABLE_NAME, TABLE_TYPE, ENGINE, DATA_LENGTH, CREATE_TIME, TABLE_COLLATION, TABLE_COMMENT from information_schema.tables where TABLE_SCH 阅读全文
posted @ 2021-02-06 23:28 sochishun 阅读(111) 评论(0) 推荐(0) 编辑
摘要: ThinkPHP 6.0 的环境要求如下: PHP >= 7.1.0 安装 Composer 如果还没有安装 Composer,在 Linux 和 Mac OS X 中可以运行如下命令: curl -sS https://getcomposer.org/installer | php mv comp 阅读全文
posted @ 2021-02-06 22:07 sochishun 阅读(1966) 评论(0) 推荐(0) 编辑
  2021年2月5日
摘要: 本项目包含 MVC 功能示例 项目目录结构约定规范 egg-project ├── package.json ├── app.js (可选) ├── agent.js (可选) ├── app | ├── router.js │ ├── controller │ | └── home.js │ ├─ 阅读全文
posted @ 2021-02-05 20:06 sochishun 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 源码如下: // 文件名:collect-crawler.js /** * Node.Js 简单的数据采集示例,使用 crawler * 安装依赖:npm install crawler * 注意事项:gzip页面处理 gzip:true */ const NmCrawler = require(' 阅读全文
posted @ 2021-02-05 16:10 sochishun 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 源码如下:(collect-http.js) // 文件名:collect-http.js /** * Node.Js 简单的数据采集示例,使用 http+cheerio+iconv-lite * 安装依赖:npm install cheerio iconv-lite * 注意事项:gzip页面处理 阅读全文
posted @ 2021-02-05 15:52 sochishun 阅读(208) 评论(0) 推荐(0) 编辑
  2021年1月24日
摘要: NodeJs 简单的MVC架构项目示例 说明:还没有加入数据库、缓存等模块,只是基础性实现MVC功能,支持路由、视图、控制器、静态目录等。 项目结构 config/ - - app.config.js - - cache.config.js - - database.config.js - - fi 阅读全文
posted @ 2021-01-24 16:35 sochishun 阅读(295) 评论(0) 推荐(0) 编辑
  2021年1月22日
摘要: 源码如下: // 文件路径:image-report.js /** * NodeJs 生成指定目录的图片报告的 html 格式文档(递归子目录,报告内容包含文件名、尺寸、路径、预览图) * 功能:生成指定目录的图片报告的 html 格式文档(递归子目录,报告内容包含文件名、尺寸、路径、预览图) * 阅读全文
posted @ 2021-01-22 15:35 sochishun 阅读(173) 评论(0) 推荐(0) 编辑
  2021年1月19日
摘要: 不依赖第三方扩展包,支持路由,支持简单的 GET、POST、PUT、DELETE 请求类型。 只有一个文件:server.js,源码如下: // 文件路径:server.js // 使用方法:node server.js,浏览器打开:http://127.0.0.1:3000 /** * NodeJ 阅读全文
posted @ 2021-01-19 17:10 sochishun 阅读(119) 评论(0) 推荐(0) 编辑
  2021年1月18日
摘要: 安装依赖包 mysql2插件官网:https://github.com/sidorares/node-mysql2 更详细的文档需移步mysql插件官网:https://github.com/mysqljs/mysql npm install mysql2 数据库配置文件(config/databa 阅读全文
posted @ 2021-01-18 20:33 sochishun 阅读(1431) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页