data.html.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template><div><h1 id="数据提取" tabindex="-1"><a class="header-anchor" href="#数据提取"><span>数据提取</span></a></h1>
  2. <h2 id="获取文本" tabindex="-1"><a class="header-anchor" href="#获取文本"><span>获取文本</span></a></h2>
  3. <p>提取元素的文本内容。</p>
  4. <h3 id="参数" tabindex="-1"><a class="header-anchor" href="#参数"><span>参数</span></a></h3>
  5. <table>
  6. <thead>
  7. <tr>
  8. <th>参数</th>
  9. <th>说明</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. <tr>
  14. <td>选择器</td>
  15. <td>目标元素选择器</td>
  16. </tr>
  17. </tbody>
  18. </table>
  19. <h3 id="输出" tabindex="-1"><a class="header-anchor" href="#输出"><span>输出</span></a></h3>
  20. <ul>
  21. <li><code v-pre>text</code> - 提取的文本</li>
  22. </ul>
  23. <h2 id="获取属性" tabindex="-1"><a class="header-anchor" href="#获取属性"><span>获取属性</span></a></h2>
  24. <p>提取元素的属性值。</p>
  25. <h3 id="参数-1" tabindex="-1"><a class="header-anchor" href="#参数-1"><span>参数</span></a></h3>
  26. <table>
  27. <thead>
  28. <tr>
  29. <th>参数</th>
  30. <th>说明</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <tr>
  35. <td>选择器</td>
  36. <td>目标元素选择器</td>
  37. </tr>
  38. <tr>
  39. <td>属性名</td>
  40. <td>要获取的属性</td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. <h3 id="输出-1" tabindex="-1"><a class="header-anchor" href="#输出-1"><span>输出</span></a></h3>
  45. <ul>
  46. <li><code v-pre>value</code> - 属性值</li>
  47. </ul>
  48. <h2 id="截图" tabindex="-1"><a class="header-anchor" href="#截图"><span>截图</span></a></h2>
  49. <p>对页面或元素截图。</p>
  50. <h3 id="参数-2" tabindex="-1"><a class="header-anchor" href="#参数-2"><span>参数</span></a></h3>
  51. <table>
  52. <thead>
  53. <tr>
  54. <th>参数</th>
  55. <th>说明</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <tr>
  60. <td>类型</td>
  61. <td>全页面 / 可视区域 / 元素</td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <h3 id="输出-2" tabindex="-1"><a class="header-anchor" href="#输出-2"><span>输出</span></a></h3>
  66. <ul>
  67. <li><code v-pre>screenshot</code> - 截图数据</li>
  68. </ul>
  69. </div></template>