有两种方法: 1.对于boolean, number, string类型,可调用toString()方法2.用String(var)方法其中,第二种方法使用范围更广,可将没有toString()方.
確定! 回上一頁