VUE is added to the number of strings into values

When MONTH is passed to 3, the following code output is 31

  IF (Data1.attr === 'Last_Month') {IF (Month === 1 ) {year = year - 1} else {month = this.trans_date (MONTH - 1)}} else} (data1.attr === 'next_month') {if (Month === 12) {year = year + 1 Month = this.trans_date (1)} else {month = this.trans_date (MONTH +1); console.log ("Month", Month)}}}}}}} = this.trans_date (month)} TRANS_DATE (DATA) { IF (DATA < 10) {
   return '0' + data
  } else {
   return data
  }
  } 
The console output is
I want MONTH + 1 to return a value, first -0 -0 is carried +1.

i (data1.attr === ‘LAST_MONTH’) {IF (Month === 1) {Year = Year – 1} else {month = this.trans_date (Month – 1)}}} else if (data1.attr === ‘next_month’) {if (month === 12) {year = year + 1 month = this.trans_date (1)} else {month = this.traNS_DATE (MONTH-0 +1); console.log (“MONTH”, MONTH)}} else {month = this.trans_date (month)}

  Console output For  

The above VUE is added to the value of the number of strings to the numerical value is the full content of Xiaobian sharing, I hope to give you a reference. I also hope that everyone will support Tumi Clouds.

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment