1
Excelにhtmlテーブルをエクスポートします。Excel番号へのhtmlテーブルのエクスポートが日付になりました
表:
<div id="table">
<table>
<thead>
<tr>
<th>Column</th>
<th>Column</th>
</tr>
</thead>
<tbody id="tabbodyExp">
<tr>
<th>2.5</th>
<th>2.6</th>
</tr>
</tbody>
</table>
</div>
スクリプト:
$("#btnExport").click(function (e) {
window.open('data:application/vnd.ms-excel,' + $('#table').html());
e.preventDefault();
});
しかし、Excelは日付を "2.5" というように書かれているすべての数字を回しています。それを止める方法はありますか、それとも "2,5"のような数字を書く必要がありますか?