循环输出出从指定日期到当前日期的年月,比如指定日期是2020-09,循环出来存入数组中应该是
monthlist:[
{year:'2020',month:'9'},
{year:'2020',month:'10'},
{year:'2020',month:'11'},
{year:'2020',month:'12'},
{year:'2021',month:'1'},
{year:'2021',month:'2'},
{year:'2021',month:'3'},
{year:'2021',month:'4'},
{year:'2021',month:'5'},
{year:'2021',month:'6'},
{year:'2021',month:'7'}
],
请问如何循环出来