开发者

What is the jQuery equivalent of "return" in Ruby?

开发者 https://www.devze.com 2023-02-20 01:35 出处:网络
I\'m referrin开发者_JAVA百科g to the return that quits running the function.return will do just that, although because ruby methods will always return the value produced by the last expression, most d

I'm referrin开发者_JAVA百科g to the return that quits running the function.


return will do just that, although because ruby methods will always return the value produced by the last expression, most developers don't use it explicitly.


Its the same return x; and it will return the value.

function(x,y){    
   return x+y;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消