“`” 参考回答:

通过函数parseInt(),可解析一个字符串,并返回一个整数,语法为parseInt(string ,radix)

string:被解析的字符串

radix:表示要解析的数字的基数,默认是十进制,如果radix<2或>36,则返回NaN

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.