【问题标题】:How I can use iMacros to edit an page's html?如何使用 iMacros 编辑页面的 html?
【发布时间】:2016-10-03 23:55:39
【问题描述】:

使用 iMacros,我需要更改这个 html 命令

<td class="dr-dscr-inact rich-datascr-inact " onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': '5'});">5</td>

<td class="dr-dscr-inact rich-datascr-inact " onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': 'n'});">5</td>

其中“n”是任意数字。我不知道如何使用 iMacros,有人可以帮助我吗?

【问题讨论】:

    标签: html automation edit imacros


    【解决方案1】:

    尝试使用此代码:

    SET n 11
    URL GOTO=javascript:var<SP>eltTdPage5=document.querySelector("td[class*='dr-dscr-inact<SP>rich-datascr-inact'][onclick*=\"{'page':<SP>'5'}\"]");eltTdPage5.outerHTML=eltTdPage5.outerHTML.replace(/5/g,{{n}});undefined;
    

    【讨论】:

    • 它没有用:/ 你希望我在这里发布 iMacros 的命令来将你发送到该站点吗?这样你可以更好地理解我的观点。
    • 为什么不呢?.. 如果这个问题对你来说仍然存在。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-21
    • 2015-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-05
    • 1970-01-01
    相关资源
    最近更新 更多