js中的return

retrun true; 返回正确的处理结果。

return false;分会错误的处理结果,终止处理。

return;把控制权返回给页面(如果条件满足,后面的逻辑就不执行了)。

if(this.index==now)return;

 now=this.index;

参考:

http://tanning555.blog.163.com/blog/static/529751712013622113458741/

https://segmentfault.com/q/1010000004571904

原文地址:https://www.cnblogs.com/xulei1992/p/5646913.html