Chrome DevTools Console black technology All In One
Chrome DevTools Console 黑科技 All In One
Console Utilities API reference
https://developer.chrome.com/docs/devtools/console/utilities/
$()
类似 jQuery $(''')
$$()
copy
const obj = {id: 1};
copy(obj);
$x('')
$x(path [, startNode])
$x(path)
returns an array of DOM
elements that match the given XPath
expression.
https://developer.chrome.com/docs/devtools/console/utilities/#xpath-function
https://stackoverflow.com/questions/10661949/what-is-the-variable-x-used-for-in-chrome
demo
利用 Chrome 控制台 + JavaScript + XPath + 批量下载
var btstr = "";
$x("//*[@id='content']//table[@class='table'][1]/tbody/tr/td[1]//a[1]/@href").forEach(function(element) {
btstr = btstr + "\n" + element.value;
});
copy(btstr);
https://leo.bi/2019/04/25/movie-download-tips/
refs
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载
标签:Console,btstr,Chrome,black,https,DevTools,com From: https://www.cnblogs.com/xgqfrms/p/16879223.html