私は、htmlテーブルをテキストファイルにエクスポートする必要があるプロジェクトで作業しています。下記のHTMLコードの簡易版である:期待される結果が(うまく整列列を持つ)テキストファイルに次のようになりますanglejsを使用してhtmlテーブルをテキストファイルにエクスポート
<table>
<thead>
<tr>
<th>Code</th>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
<th>Date1</th>
<th>Date2</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="employee in employees">
<td>{{employee.code}}</td>
<td>{{employee.firstName}}</td>
<td>{{employee.lastName}}</td>
<td>{{employee.age}}</td>
<td><input type="text" class="datepicker" ng-model="employee.date1" datepicker /></td>
<td><input type="text" class="datepicker" ng-model="employee.date2" datepicker/></td>
</tr>
</tbody>
</table>
:
Code firstName lastName Age Date1 Date2
001 x y 25 2016/01/01 2016/04/04
...
を私がして、「古典的」な方法を試してみましたjqueryしかし、それは私のTDの中の値を解釈しません。ですから、このような問題を克服するための角度のある指示などを探しています。 おかげ..
何が問題でしたか? –
ここで{{}}の中にデータをエクスポートしようとすると問題が発生します:![印刷画面](http://i.imgur.com/qrkwaKE.png) – Daniel