var numString = '122';
var numberInt = Number(numString);
var res = numberInt/2;
结果:
res = 61
本文共 149 字,大约阅读时间需要 1 分钟。
var numString = '122';
var numberInt = Number(numString);
var res = numberInt/2;
结果:
res = 61
转载于:https://www.cnblogs.com/code-Officer/p/6207456.html