【问题标题】:Handsontable is not displaying properlyHandsontable 无法正确显示
【发布时间】:2018-06-09 10:33:54
【问题描述】:

我遇到了handsontable 正确显示的问题。我已经尽可能简单地做到这一点,我得到的只是奇怪的结果。我已经通过 bower 安装了 handsontable 并在本地运行它——我相当有信心它正在加载,但它看起来很奇怪。

索引.html:

<!DOCTYPE html>
<html>

  <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
  <script src="bower_components/handsontable/dist/handsontable.full.min.js"></script>
  <link rel="stylesheet" media="screen" href="/dist/handsontable.full.css">
  <div id="example"></div>
  <script type="text/javascript">
    var data = [
      ["", "Ford", "Volvo", "Toyota", "Honda"],
      ["2016", 10, 11, 12, 13],
      ["2017", 20, 11, 14, 13],
      ["2018", 30, 15, 12, 13]
    ];

    var container = document.getElementById('example');
    var hot = new Handsontable(container, {
      data: data,
      rowHeaders: true,
      colHeaders: true
    });
  </script>
</html>
<style>

我无法正确选择任何内容,显然它看起来很奇怪。知道这里可能出了什么问题吗?恐怕我有点不知所措。

【问题讨论】:

  • 这让我彻底疯了,我将永远感激任何能回答这个问题的人

标签: javascript browserify handsontable


【解决方案1】:

好的,解决了 - 不完全确定原因,但将我的脚本源切换到选项 3 here。希望这可以帮助某人!

【讨论】:

    猜你喜欢
    • 2019-07-21
    • 2017-01-27
    • 2014-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多