ionic3 - Ionic v3:如何将离子网格表复制到 excel
问题描述
我正在尝试将网格数据复制到 Excel 表格中。
这是我的代码
<ion-grid>
<ion-row *ngFor="let row of ['', '', '', '', '', '']; let i=index;">
<ion-col col-3 *ngFor="let col of ['', '', '', '']; let j=index;" style="border:1px solid black;">
TEST {{i}}.{{j}}
</ion-col>
</ion-row>
</ion-grid>
当我将表格粘贴到 excel 中时,它会打印为一行 instated 表格。
解决方案
我觉得没有别的办法
<table width="100%">
<tr *ngFor="let row of ['', '', '', '', '', '']; let i=index;">
<td text-center *ngFor="let col of ['', '', '', '']; let j=index;" style="border:1px solid black;">
TEST {{i}}.{{j}}
</td>
</tr>
</table>
推荐阅读
- docker - 通过 docker 镜像名称或存储库删除或修剪悬空的 docker 镜像过滤器
- c# - Azure Functions 无法再创建 .NET Framework 运行时
- reactjs - 使用 sp-rest-proxy / node-sp-auth 进行身份验证
- php - 用大括号将字符串转换为数组
- reactjs - 如何使用 React-Redux 从另一个类调用函数?
- xslt - 如何使用 Apache Camel 在 XSLT 中为每个组申请
- css - 在图像上旋转晕影
- reactjs - React App:Tiny MCE 不会像我在编辑时那样在保存后突出显示代码
- java - 尝试通过 OAuth2 SMTP 发送 Gmail 电子邮件时出现 AuthenticationFailedException
- java - 为什么引用指向一个由java中的concat()方法返回的SCP区域对象?