var  a=123;

console.log(typeof a);   //  number;

 

var  a=123+"";

console.log(typeof a);   //  string;

相关文章: