Adding and subtracting strings and numbers in Javascript - auto type conversion?

前端 未结 5 1806
抹茶落季
抹茶落季 2020-12-04 01:52

Let\'s look at the following Javascript code.



        
5条回答
  •  一向
    一向 (楼主)
    2020-12-04 02:20

    If you don't want this, an easy fix is: (1*'2')+8 JSYK

提交回复
热议问题