为什么使用jQuery1.7.2版本时,bootstrap-table数据不显示?

使用jQuery1.9以上版本时,bootstrap-table数据会显示;换成jQuery1.7.2版本时,bootstrap-table数据不显示?

楼上说的都错了。这是由于在1.7.2版本中$(document.createDocumentFragment()).append(dom);无效,无法将dom元素添加到文档碎片上;
将对应位置的代码改成如下所示即可,最后一个红框由于太长记得把整个appendChild里的内容括起来后面再加[0]
图片说明

Bootstrap 插件全部依赖 jQuery
请注意,Bootstrap 的所有 JavaScript 插件都依赖 jQuery,因此 jQuery 必须在 Bootstrap 之前引入,就像在基本模版中所展示的一样。在 bower.json 文件中 列出了 Bootstrap 所支持的 jQuery 版本。

以上官网原话,楼主找到 bootstrap/bower.json文件最后面查看依赖的js版本

 {
  "name": "bootstrap",
  "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
  "keywords": [
    "css",
    "js",
    "less",
    "mobile-first",
    "responsive",
    "front-end",
    "framework",
    "web"
  ],
  "homepage": "http://getbootstrap.com",
  "license": "MIT",
  "moduleType": "globals",
  "main": [
    "less/bootstrap.less",
    "dist/js/bootstrap.js"
  ],
  "ignore": [
    "/.*",
    "_config.yml",
    "CNAME",
    "composer.json",
    "CONTRIBUTING.md",
    "docs",
    "js/tests",
    "test-infra"
  ],
  "dependencies": {
    "jquery": "1.9.1 - 3"
  }
}

bootstrap比如在jquery引入后引入。不然可能会导致这个问题

引入先后的问题,科研先引入jquery,再引入bootstrap。bootstrap要利用jquery的基础

引入顺序的问题,先引入jquery试一下