Sangil's blog

https://github.com/ChoiSangIl Admin

vue js subString, v-for DEV / WEB

2019-09-18 posted by sang12


vue js subString 문법 javascript와 동일하게 사용 & v-for문

<tr v-for="list in boardList">    
<td>{{ list.noticeTitle.substring(0,18)}}..</td>
<td>{{ list.registerDate }}</td>
</tr>
<script>
export default {
data() {
return {
boardList : [{noticeTitle:'test123456', registerDate:'2019-12-25'}, {noticeTitle:'test44444444', registerDate:'2019-12-25'}]
};
}
}
</script>
#vue js subString 문법 #vue substr #vue substring #VUE
REPLY