Javascript object instantiation of method

前端 未结 0 614
无人及你
无人及你 2020-12-05 05:10

In Javascript, can you create an object instance of a method? My code below causes errors.

const myObject = {
    myMethod: function () {},
    objectInstance         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题