已采纳回答 / 慕仙9421457
地址输入错误。const http = require('http');const hostname = '127.0.0.1';const port = 3000;const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World\n');});server.listen(port, ho...
2017-04-14
已采纳回答 / ffan
var chapters = $('.learnchapter')var video = $(this).find('.studyvideo')对于这两条语句,你应当在自己电脑上查看这个网页的相关class值,比如我的,就是var chapters = $('.chapter')和var video = $(this).find('.J-media-item')
2017-04-01
已采纳回答 / jjjface
EventEmitter是events模块的一个方法。console.log打出events是这样的{ [Function: EventEmitter] EventEmitter: [Circular], usingDomains: false, defaultMaxListeners: [Getter/Setter], init: [Function], listenerCount: [Function] }
2017-03-30