假设我用刺绣写出一个物体
var myObject = {};
两者有什么区别...
myObject.someFunc = function(){...};
和
myObject.prototype.someFunc = function(){...}
穿刺衣吗?
I am having trouble understanding the difference or if there is a difference 和how 和when to use either of these syntaxes.
当我编出这样的法典时, 似乎真的没有区别。
I am looking for both a client side (browser) 和server side (like node.js) answers.
I want to code properly 和accurately 和this is really bothering me.