JS Javascript string to number transform
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 Foucs on: Pro Web Dev Tutorial and Pro Web Dev Service
Copyright © 2011 - 2024 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
Leave Comment