是
return false
Run Code Online (Sandbox Code Playgroud)
同样如下:
return
Run Code Online (Sandbox Code Playgroud) 假设您有2个不返回值的相同函数
function a() {
// do some interesting things
}
function b() {
// do the same interesting things
return;
}
Run Code Online (Sandbox Code Playgroud)
功能b显然更冗长,但这些功能有什么区别?
javascript ×2