w3pop.com :: 网络学院 :: JavaScript :: JS布尔对象参考
FF: Firefox, N: Netscape, IE: Internet Explorer
FF:火狐,N:网景,IE
| Method 方法 |
Description 描述 |
FF | N | IE |
|---|---|---|---|---|
| toSource() | Represents the source code of an object 显示对象的源代码 |
1 | 4 | - |
| toString() | Converts a Boolean value to a string and returns the result 将布尔值转换为字符串,并且返回结果 |
1 | 4 | 4 |
| valueOf() | Returns the primitive value of a Boolean object 返回布尔对象的原始值 |
1 | 4 | 4 |
| Property 属性 |
Description 描述 |
FF | N | IE |
|---|---|---|---|---|
| constructor | A reference to the function that created the object 所建立对象的函数参考 |
1 | 2 | 4 |
| prototype | Allows you to add properties and methods to the object 为对象添加属性和方法 |
1 | 2 | 4 |