上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 222 下一页
摘要: 转自:https://www.cnblogs.com/chris-oil/p/9136534.html Mongoose 参考手册 标签(空格分隔): MongoDB Mongoose 是什么? 一般我们不直接用MongoDB的函数来操作MongoDB数据库 Mongose就是一套操作MongoDB 阅读全文
posted @ 2018-01-06 14:01 Sharpest 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.gruntjs.net/getting-started 还在使用 Grunt 0.3 版本吗?请查看 Grunt 0.3 注意事项 在继续学习前,你需要先将Grunt命令行(CLI)安装到全局环境中。安装时可能需要使用sudo(针对OSX、*nix、BSD等系统中)权限 阅读全文
posted @ 2018-01-04 16:34 Sharpest 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.gruntjs.net/getting-started Grunt和 Grunt 插件是通过 npm 安装并管理的,npm是 Node.js 的包管理器。 Grunt 0.4.x 必须配合Node.js >= 0.8.0版本使用。;奇数版本号的 Node.js 被认为是 阅读全文
posted @ 2018-01-04 16:30 Sharpest 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ AngularJS 目前的版本没有遵循 Javascript 约定的 AMD 模块化规范, 因此使用 RequireJS 加载 AngularJS 时需要一些额外的配置。 通过查阅 RequireJS 的文档, 阅读全文
posted @ 2018-01-04 09:19 Sharpest 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 官网下载:https://angularjs.org/ AngularJS所有版本下载:https://code.angularjs.org/ 附上一个GitHub上持续更新AngularJS的链接:https 阅读全文
posted @ 2018-01-03 17:47 Sharpest 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html 众所周知对于任何一个项目来说,做好单元测试都是必不可少的一项工作。今天在逛CnodeJs社区的时候,无意中看到一篇介绍nodejs测试工具mocha的 阅读全文
posted @ 2018-01-03 13:38 Sharpest 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html Mocha支持从测试用例生成规格文件。 进入demo09子目录,运行下面的命令。 上面命令根据test目录的所有测试脚本,生成一个规格文件spec. 阅读全文
posted @ 2018-01-03 13:23 Sharpest 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html 除了在命令行运行,Mocha还可以在浏览器运行。 首先,使用mocha init命令在指定目录生成初始化文件。 运行上面命令,就会在demo08目录 阅读全文
posted @ 2018-01-03 13:20 Sharpest 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html 大型项目有很多测试用例。有时,我们希望只运行其中的几个,这时可以用only方法。describe块和it块都允许调用only方法,表示只运行某个测试 阅读全文
posted @ 2018-01-03 13:12 Sharpest 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html Mocha在describe块之中,提供测试用例的四个钩子:before()、after()、beforeEach()和afterEach()。它们 阅读全文
posted @ 2018-01-03 13:09 Sharpest 阅读(398) 评论(0) 推荐(0) 编辑
上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 222 下一页