纯javascript函数是否在cheerios中起作用

时间:2016-05-12 01:25:53

标签: javascript jquery node.js cheerio

像substring indexOf,lastIndexOf,Substring等函数是否在cheerios中工作?

Does these work in cheerio

我想知道cheerio中哪些本机javscript函数

var s=$( "body" ).html();
var temp1=$(s);
alert(temp1.children().html());


alert(temp1.html());
var temp = document.createElement('div');
temp.innerHTML = s;
alert(temp.children[0].innerHTML);


s = s.substring(s.indexOf(">")+1,s.lastIndexOf("<")-1);
alert(s);
//document.querySelector(".Extracted").innerHTML=s;
$(".Extracted").html(s);

1 个答案:

答案 0 :(得分:1)

是的,所有本机功能都在cheerio中运行