function Repo(){} var r = Repo.prototype; r.create = function(cb){ }; r.find = function(){ }; r.findById = function(id,cb){ }; r.removeById = function(){ }; <p class="indent">
var repo = { find:function(){} ,findById:function(){} ,removeById:function(){} ,create:function(){} } <p class="indent">
[该贴被brighthas于2012-06-30 16:56修改过]