layui之layer打开table后分页无效的解决方法

1.原代码:

<body>
  <div id="showalladdableavms" style="display: none; width: 100%">
    <table id="demo" lay-filter="test"></table>
  </div>
</body>
<scri...