我让这个代码片段使用JavaScript在浏览器上工作:
document.querySelectorAll('[rel="next"]');它返回一个数组,该数组是空的或填充的,这取决于当前的网页。
我试图将其转换为函数中的Parenscript,如下所示:
(ps:chain document query-selector-all ...)我无法理解如何将[rel="next"]的位置转换为函数调用的参数。谁能给点提示吗?
我正在使用通用Lisp/SBCL。
发布于 2021-06-18 21:32:16
(ps:chain document (query-selector-all "[rel=\"next\"]"))https://stackoverflow.com/questions/68040872
复制相似问题