Alternative if IE11 cannot use template tags in the table tag

Asked 2 months ago, Updated 2 months ago, 3 views

I am using vue.js, but IE11 is having trouble using template tags in the table tag.

<tr>
  <td>hoge</td>
  <template v-for = "item in items" >
    <td>{{item.fuga}}</td>
    <td>{{item.piyo}}</td>
  </template>
</tr>

Is there an alternative way for IE to do this?

javascript vue.js internet-explorer

2022-09-30 11:17

1 Answers

I haven't tried it yet, but how about this?

<tr>
  <td>hoge</td>
  <td v-for="vin items.reduce(function(a,c){return a.concat([c.fuga,c.piyo])}",[])">
    {{ v}}
  </td>
</tr>

It's hard to understand, so I think it's better to choose compute.


2022-09-30 11:17

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.