omnip620 / node-zookeeper-dubbo

A middleware helps node to communicate dubbo by using its default protocol, which is registered in zookeeper
300 stars 80 forks source link

通过.的方式直接调用远程方法 #11

Closed lifubang closed 8 years ago

lifubang commented 8 years ago

service.init().then(function() { //更优雅地通过.的方式调用远程方法 service.checkLogin(arg1, arg2) .then(function(data){ console.log(data); }) .catch(function(err) { console.log(err); }); });

omnip620 commented 8 years ago

@lifubang gdpl 我先看一下哈 感谢提交

omnip620 commented 8 years ago

@lifubang 2.0版本已加入 感谢提供建议