Returns the primitive value of the specified object.
返回指定对象的基础类型。
object.valueOf()
- Parameters : 参数
- Array
Returns the array instance. - Boolean
The boolean value. - Date
The stored time value in milliseconds midnight, January 1, 1970 UTC. - Function
The function itself. - Number
The numeric value. - Object
The object itself. By default. - String
The string value.
- Example : 例子