美文网首页
bootstrap 1.19的 Invalid attempt

bootstrap 1.19的 Invalid attempt

作者: hugoren | 来源:发表于2022-03-02 12:06 被阅读0次

解决思路
先看github的issues Invalid attempt to spread non-iterable instance.

有人已在githug提了同样的问题issues Invalid attempt to spread non-iterable instance


image.png

已修复


但还是出现, 原因是初始化的姿势不对,如

 $table.bootstrapTable({
          url: $url_query,
          showRefresh: true,
          showColumns: true,
          search: true,
          toolbar: '.toolbar',
          queryParams: function () {
              return {}
          },

      })

正确的是

$(function () {
      $table.bootstrapTable({
          url: $url_query,
          showRefresh: true,
          showColumns: true,
          search: true,
          toolbar: '.toolbar',
          queryParams: function () {
              return {}
          },
         
      })
  });

刷新后,就不再报 Invalid attempt to spread non-iterable instance


image.png

相关文章

网友评论

      本文标题:bootstrap 1.19的 Invalid attempt

      本文链接:https://www.haomeiwen.com/subject/otbsrrtx.html