08 2018 档案

摘要:why don’t have function by commonJS way?, have below code: exports.add = function(a, b) { return a + b } add(2, 3) //-> ReferenceError: add is not def 阅读全文
posted @ 2018-08-31 10:31 西河 阅读(18) 评论(0) 推荐(0) 编辑
摘要:如题,今天特意测试了下类在执行constructor方法中是否可以使用其原型方法,测试文件内容如下: class Test { constructor() { const names = Object.getOwnPropertyNames(Test.prototype) console.log(' 阅读全文
posted @ 2018-08-13 17:29 西河 阅读(4) 评论(0) 推荐(0) 编辑
摘要:概述 这是一个对juzi8网站的爬虫项目,主要的过程就是解析网页,发现新的待解析网页的网址,存储解析结果到mongodb数据库。 项目启动 必需环境 nodejs环境安装mongodb数据库git 数据库设置 [Mac] 1. 安装mongodb数据库,brew install mongodb 2. 阅读全文
posted @ 2018-08-11 11:15 西河 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示