jExcel: Excel-Like jQuery Spreadsheet Plugin

Add-ons
2026-07-26 03:45 4 次浏览 • 0 次下载 30.9KB
jExcel: Excel-Like jQuery Spreadsheet Plugin

Quick Tutorial

jexcel.js is a lightweight jQuery spreadsheet plugin similar to Excel. You can provide data to a jexcel spreadsheet using JavaScript arrays, JSON data, or CSV files. You can even copy and paste data directly from an Excel spreadsheet into a jexcel spreadsheet.

Usage

Include the jquery, jquery.jexcel.js, and jquery.jexcel.css files in the page.

1
2
3
<link rel="stylesheet" type="text/css" href="css/jquery.jexcel.css" />
<script src="js/jquery.min.js"></script>
<script src="js/jquery.jexcel.js"></script>

HTML Structure

Use a <div> container as the container for the jexcel spreadsheet.

1
<div id="my"></div>

Initialize the Plugin

After the page DOM elements have finished loading, initialize the jexcel spreadsheet using the following code.

1
2
3
4
5
data = [
['Google', 1998, 807.80],
['Apple', 1976, 116.52],
['Yahoo', 1994, 38.66],
];
1
$('#mytable').jexcel({ data:data, colWidths: [ 300, 80, 100 ] });
星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare