GundamFans V1.3
GundamFans V1.2

GundamFans V1.2

更新:

Comment模块设计: Data Association in Mongoose, 为了安全性使用expressSanitizer

Code Refactoring: 划分module, RESTful routing, seedDB()函数生成初试测试数据

阅读更多
GundamFans V1.1

GundamFans V1.1

GundamFans意在建立一个高达动漫同好分享网站, 分享自己喜爱的高达机体.

后端主体为nodeJS的express框架, 数据库采用mongoDB, 使用mongoose库进行操作. 前端部分使用ejs来编写网页, 使用bootstrap进行装饰, 具有较好的整合性.

阅读更多

Tree BFS DFS

使用callback以及call技术, 写出标准化的BFS,DFS. 以及扩展性极强的contain.

阅读更多

LC_training(2)

易错点

  1. forEach()函数体中,无法使用return终止运行,也不能使用break,continue. 应该使用其他语法.

阅读更多

LC_training(1)

犯过的那些错误

  1. 一个专属JS的不起眼的坑!!!

    1
    2
    3
    4
    for(var i in nums){
    if(nums[i]==nums[i+1]){
    ...
    }

    上述代码中nums[i+1]结果undifined, 因为for in遍历的原理是什么呢? 其实是把nums数组当做Obejct(一个键值对结构), 其中i 是对于其key的遍历, 因此i 其实是字符串”0”, 而i+1则表示”01”, 自然是找不到结果.

阅读更多