js各类型转化2019-06-20 本文已影响0人 Sasoli String to Number Number(str) +str Number to String toString(num) ""+num All to Boolean Boolean(value) !!value Object to JSON JSON.stringify(obj) JSON to Object JSON.parse(obj)