gpt4 book ai didi

javascript - 表不会显示使用 jquery sheetrock

转载 作者:行者123 更新时间:2023-11-28 03:16:11 25 4
gpt4 key购买 nike

您好,我正在尝试使用 jquery 插件 Sheetrock 显示 Google 电子表格中的表格。当我在 jsfiddle 中执行时它显示正常,但在加载 html 时不显示。这是代码:

!DOCTYPE html
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="/dist/jquery.sheetrock.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/sheetrock.css">
<script>
$(document).ready(function() {
var mySpreadsheet = 'https://docs.google.com/spreadsheet/ccc?key=0AlRp2ieP7izLdGFNOERTZW0xLVpROFc3X3FJQ2tSb2c#gid=0';

$('#statistics').sheetrock({url: mySpreadsheet});
});
</script>
<meta charset="utf-8">
<title>table</title>
</head>
<body>
<table id="statistics" class="table table-condensed table-striped"></table>

</body>
</html>

最佳答案

“jquery.sheetrock.min.js”库没有获得正确的路径。可能这就是它没有显示的原因。

<!DOCTYPE html>
<html>
<head>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-sheetrock/1.0.0/dist/sheetrock.min.js'></script>
<link rel="stylesheet" type="text/css" href="css/sheetrock.css">
<script>
$(document).ready(function() {
var mySpreadsheet = 'https://docs.google.com/spreadsheet/ccc?key=0AlRp2ieP7izLdGFNOERTZW0xLVpROFc3X3FJQ2tSb2c#gid=0';

$('#statistics').sheetrock({url: mySpreadsheet});
});
</script>
<meta charset="utf-8">
<title>table</title>
</head>
<body>
<table id="statistics" class="table table-condensed table-striped"></table>
</body>
</html>

关于javascript - 表不会显示使用 jquery sheetrock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27604694/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com