📜  将字符串转换为 int 角度 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:17.446000             🧑  作者: Mango

代码示例1
Exactly like in JavaScript, you can use the parseInt or parseFloat functions,
 or simply use the unary + operator:
var x = "32";
var y: number = +x;