摘要:
function Jsonp(url){ var url=url.indexOf('?')>-1?url+"&callback=callback":url+"?callback=callback"; return new Promise(function(resolve,reject){ var script=document.createElement('scri... 阅读全文
摘要:
//http小爬虫 var http=require('http') var cheerio=require('cheerio') var url='http://www.imooc.com/learn/348' function filter(html){ var $=cheerio.load(html); var chapters=$('.mod-chapters') ... 阅读全文