for example suppose I have:
var obj_a = { foo: function() {} } var obj_b = { bar: function() {} }
How should I declare obj_c to have both methods so that typing obj_c. would popup foo and bar as valid autocomplete options?
obj_c
obj_c.
foo
bar
Aucun commentaire:
Enregistrer un commentaire