问题描述
我想知道为什么第一部分代码返回一个带有元素的html形式的字符串,而第二部分代码返回一个对象
//1st part
const $ = cheerio.load(content);
console.log(`button |||||| ::::::: ${$('button[class="sc-ifAKCX kUaUob"]')}`); //logs '<button> ... </button>'
//2nd part
const btn= $('button[class="sc-ifAKCX kUaUob"]');
console.log(typeof(btn));
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)