JS Javascript 中 String 转化 Number 类型
var voteTimes = Number('12'); //int 12
var voteTimes = Number('12.12'); //int 12.12
var voteTimes = Number('12'); //int 12
var voteTimes = Number('12.12'); //int 12.12
YiiLib 专注于: 专业Web开发教程和专业Web开发服务
Copyright © 2011 - 2024 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
留言