若字符串長度<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>
vue 如何實現切割字符串,并隔行顯示
侃侃無極
2018-07-05 13:17:22