var http=require("http");var cheerio=require('cheerio');var url="http://www.imooc.com/learn/348";function filterCharpter(html){ var $=cheerio.load(htm Read More
posted @ 2016-11-16 20:46
heshan珊
Views(279)
Comments(0)
Diggs(0)
1.slice(); Array和String对象都有 在Array中 slice(i,[j]) i为开始截取的索引值,负数代表从末尾算起的索引值,-1为倒数第一个元素 j为结束的索引值,缺省时则获取从i到末尾的所有元素 参数返回: 返回索引值从i到j的数组,原数组不改变 在String中 slic Read More
posted @ 2016-11-16 20:41
heshan珊
Views(3858)
Comments(0)
Diggs(2)

浙公网安备 33010602011771号