jQuery:从大量pdf文件中搜索文本?

时间:2018-10-18 12:18:33

标签: javascript jquery performance search pdf.js

我遇到了一个问题,我想从180多个pdf文件中进行文本搜索。我的脚本首先从pdf文件(pdf.js)提取数据,然后从提取的数据中搜索文本并给出结果。它以某种方式可以显示正确的结果,但速度非常慢,有时会挂起我的PC。

<div class="m-group">


  <div id="id251" class="mEditor">

    <div class="m-label">
      <label for="id223" title="Address">Address</label>
    </div>
    <div class="m-editor-noc">
      <div id="id252" class="mfEditor">


        <input type="text" class="tEditor" value="Address" name="" id="id223" maxlength="255" tabindex="0">


      </div>
      <div class="editor-links"></div>
    </div>
  </div>



  <div id="id254" class="mEditor">

    <div class="m-label">
      <label for="id224" title="Address 2">Address 2</label>
    </div>
    <div class="m-editor-noc">
      <div id="id255" class="mfEditor">


        <input type="text" class="tEditor" value="16" name="" id="id224" maxlength="30" tabindex="0">


      </div>
      <div class="editor-links"></div>
    </div>
  </div>



  <div id="id257" class="mEditor">

    <div class="m-label">
      <label for="id225" title="Postcode">Postcode</label>
    </div>
    <div class="m-editor-noc">
      <div id="id258" class="mfEditor">


        <input type="text" class="tEditor" value="Post Code" name="" id="id225" maxlength="10" tabindex="0">


      </div>
      <div class="editor-links"></div>
    </div>
  </div>



  <div id="id25a" class="mEditor ">

    <div class="m-label">
      <label for="id20f" title="City">City</label>
    </div>
    <div class="m-editor-noc">
      <div id="id25b" class="mfEditor">


        <input type="text" class="tEditor" value="City" name="" id="id20f" autocomplete="off" maxlength="50" tabindex="0">


      </div>
      <div class="editor-links">

      </div>

    </div>
  </div>



  <div id="id25d" class="mEditor">

    <div class="m-label">
      <label for="id228" title="District">District</label>
    </div>
    <div class="m-editor-noc">
      <div id="id25e" class="mfEditor">


        <input type="text" class="tEditor" value="" name="" id="id228" maxlength="100" tabindex="0">


      </div>
      <div class="editor-links"></div>
    </div>
  </div>



  <div id="id260" class="mEditor ">

    <div class="m-label">
      <label for="id210" title="Country">Country</label>
    </div>
    <div class="m-editor-noc">
      <div id="id261" class="mfEditor">


        <input type="text" class="tEditor" value="Country" name="" id="id210" autocomplete="off" maxlength="50" tabindex="0">


      </div>
      <div class="editor-links">

      </div>
    </div>
  </div>


</div>

您能为我提供任何更好的解决方案吗?谢谢

0 个答案:

没有答案