Javascript语法分号

时间:2013-06-04 04:04:22

标签: javascript if-statement eval

我有这个JavaScript代码,我想知道{之后用分号究竟发生了什么。

if(buttonid=='save') {

    if (eval(formSaveCallback)) {;  //what is the use of this semicolon

        //Some code

    }

}

1 个答案:

答案 0 :(得分:1)

在每行代码中使用;有什么用处?答案也是如此。