将后台返回的月份201810,201809转换成正常的9月10月

changeValue(val) {
    var str = '';
    str = val.slice(4);
    if (str.indexOf('0') == 0) {
        str = str.slice(1);
    }
    return str + '月';
}
原文地址:https://www.cnblogs.com/florazeng/p/14041066.html