js中的object的使用方法

1.直接使用new object创建对象:

2、使用“对象字面量”表示:

3、函数方法:

4。构造函数:


猜你喜欢

转载自blog.csdn.net/qq_37909508/article/details/79730196