【JavaScript】parseInt

为什么80%的码农都做不了架构师?>>>    今天单独来聊一聊 JavaScript 的 parseInt方法。 前段时间看到这样一道题 对这道题我也感到很疑惑,跑去翻了下w3c手册,结果如下: 首先,小明的写法等价于: ["1","2","3"].map(parseInt)等于[parseInt(1,0),parseInt(2,1),parseInt(3,2)]; w3c中对 parseInt
相关文章
相关标签/搜索