你好有联系方式吗?
if(str==s){ str=curr.getFullYear()-1+"-12"; } 遇到为0的月份,年份先减1
if(str==s){ str=curr.getFullYear()-1+"-12"; }