Home > Back-end >  WeChat small operation program problem
WeChat small operation program problem

Time:12-01



First input worthy cases, click add or subtract, num value as a string of things will to string concatenation, this how to return a responsibility

CodePudding user response:

Enclosing setData ({
Num: parseInt (this) data) num) + parseInt (opertion)
})

Silly, type conversion here ok

CodePudding user response:

This treatment with JS: parseInt (" 10 ")
  • Related