Vue 函数

1.转换为大写字符

.toUpperCase()

2.字符串反转

 this.message = this.message.split('').reverse().join('')

3.从index开始截取字符串

value.slice(index)

4.按index取字符串

value.charAt(0)

 

posted @ 2017-05-22 00:42  微笑代表淡定.Net  阅读(367)  评论(0编辑  收藏  举报