示例代码:
var myObject = (function() {
var M;
M = function() {
}
M.prototype = {
constructor: M,
setSomeProperty = function(someValue) {
// Do Stuff
return this; // For chaining purposes
}
}
return M
}());
@returns
记录方法时标签会是什么样子setSomeProperty
?