mirror of
https://github.com/phodal/github
synced 2026-05-22 16:48:40 +00:00
Merge pull request #5 from wangxiaolong100/patch-2
Update 03-build-github-project.md
This commit is contained in:
commit
e61bbe1550
1 changed files with 3 additions and 3 deletions
|
|
@ -182,7 +182,7 @@ Lettuce.send = function (url, method, callback, data) {
|
|||
|
||||
在SkillTree的源码里,大致分为三部分:
|
||||
|
||||
- namespace函数: 故名思意
|
||||
- namespace函数: 顾名思义
|
||||
- Calculator也就是TalentTree,主要负责解析、生成url,头像,依赖等等
|
||||
- Skill 主要是tips部分。
|
||||
|
||||
|
|
@ -377,7 +377,7 @@ describe('Book,Link', function () {
|
|||
});
|
||||
```
|
||||
|
||||
因为我们用``require.js``来管理浏览器端,在后台写测试来测试的时候,我们也需要用他来管理我们的依赖,这也就是为什么这个测试这么从的原因,多数情况下一个测试类似于这样子的。(用Jasmine似乎会是一个更好的主意,但是用习惯Jasmine了)
|
||||
因为我们用``require.js``来管理浏览器端,在后台写测试来测试的时候,我们也需要用他来管理我们的依赖,这也就是为什么这个测试这么长的原因,多数情况下一个测试类似于这样子的。(用Jasmine似乎会是一个更好的主意,但是用习惯Jasmine了)
|
||||
|
||||
```javascript
|
||||
describe('Book Test', function () {
|
||||
|
|
@ -540,4 +540,4 @@ SQLiteHelper.prototype.getData = function (url, callback) {
|
|||
|
||||
重构完后的代码比原来还长,这似乎是个问题~~
|
||||
|
||||
---
|
||||
---
|
||||
|
|
|
|||
Loading…
Reference in a new issue