若字符串长度<6,正常渲染,若字符串超出6个字,则进行分割,存入数组,点击展示剩余字符串内容,图中是jq实现,vue新手,请教下vue用v-for指令如何实现?THML部分代码: <tr class="hap_table_tr"> <td class="hap_table_bank"><p>工行</p></td> <td><p>不准入</p></td> <td><time>2018-05-23</time></td> <td class="hap_table_notes"><p class="hap_table_note">备注备注</p><i class="hap_table_drop1"></i></td> </tr> <tr class="hap_table_tr"> <td class="hap_table_bank"><p>建行</p></td> <td><p>谈费率</p></td> <td><time>2018-05-23</time></td> <td class="hap_table_notes"><p class="hap_table_note">备注备注备注安大师傅</p><i class="hap_table_drop1"></i></td> </tr> <tr class="hap_table_tr"> <td class="hap_table_bank"><p>农行</p></td> <td><p>协议流转</p></td> <td><time>2018-05-23</time></td> <td class="hap_table_notes"><p class="hap_table_note">即将拉开交流解决骷髅精灵</p><i class="hap_table_drop1"></i></td> </tr>
- 2 回答
- 0 关注
- 4522 浏览
添加回答
举报
0/150
提交
取消