A | B | C | |
1 | 1998 | 807.8 | |
2 | Apple | 1976 | 116.52 |
3 | Yahoo | 1994 | 38.66 |
<html> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="http://cdn.bossanova.uk/js/jquery.jexcel.js"></script> <link rel="stylesheet" href="http://cdn.bossanova.uk/css/jquery.jexcel.css" type="text/css" /> <div id="my"></div> <script> data = [ ['Google', 1998, 807.80], ['Apple', 1976, 116.52], ['Yahoo', 1994, 38.66], ]; $('#my').jexcel({ data:data, colWidths: [ 300, 80, 100 ] }); </script> </html>