javaScript - pass object as function argument

后端 未结 0 1814
执念已碎
执念已碎 2021-02-10 13:57

I want to use an object as function argument. When I define an object outside fucntion and then pass it as an argument, it works fine:

var obj = {
  a: 0
}

fun         


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