不挂科搜题免费

问题:

在JavaScript中,下列哪个函数用于将字符串转换为整数?( )

选项

  • parseInt()

  • toInt()

  • str_to_int()

  • convert_to_int()

  • 答案:

    A