description trouble boss to point out how to reconstruct the operations of different objects with the same method? At the bottom of is the code. The save methods here are all the same operation. The object is used as a reference here. I just want...
there is a project in the company that uses a lot of React and Redux, background interfaces, uses swagger api framework, and then uses handlebar at the front end to automatically generate action creator according to swagger s json. the problem now is t...
scenario : there is an object, and the method foo () is added through the prototype keyword. var Graph = new Graph(); foo Graph.prototype.foo = function(){ ... } fun Graph.prototype.fun = function(){ ... } now the logic in the foo ...