Does an object have only one method or can it have multiple methods?
天蓬老师2018-12-11 11:04:25
You can add any number of methods to an object. However, it is recommended to add shared methods or other members to the prototype object of the object constructor to improve efficiency