postman 获取HTML 里name=token 的值

html 复制代码
<input type="hidden" name="token" value="LT-93387-t7KaInf3Fox2Hd0F24eHpBFg7BcNAp" />

接口返回的HTML,可以使用cheerio获取具体的值,如下:

//引入cheerio

const $ = cheerio.load(responseBody)

//解析name ="lt"

console.log($('name ="lt"').val())

相关推荐
winfredzhang4 小时前
为长阅读而生:我做了一个「安静」的 PDF 阅读器
pdf·html
icsocket11 小时前
芯片测试治具关键组成部分和设计考虑:机械结构中的夹具
测试工具
u01437810812 小时前
行内块元素之间的空白
前端·html
触底反弹13 小时前
🎲 纯 CSS 搞定 3D 旋转立方体?还附赠一个「天坑」解决方案!
前端·css·html
♛小小小让让13 小时前
postman写断言(assert)
postman·断言
LaughingZhu13 小时前
Product Hunt 每日热榜 | 2026-07-06
前端·人工智能·经验分享·chatgpt·html
神奇的代码在哪里16 小时前
AI编程时代,PPT已成为过去,单个HTML文件创造无限可能
javascript·html·powerpoint·ai编程·ppt
杨超越luckly16 小时前
Agent 应用指南:基于 OurAirports 的中国机场设施数据可视化
python·html·github·可视化·机场设施
stereohomology18 小时前
已进入初赛提交Demo的两个项目:(2)单独html钢琴
前端·html·why不coding
你怎么知道我是队长1 天前
html的注释写法
html