当我读取 javascript 文件时,它有两个“;”有时,比如:
(function($, undefined) {
;;
var defaults = {
..........
什么意思?
最佳答案
这只是一个空语句(称为 an "empty statement" by the ECMAScript standard )。这也适用:
;;;;;;;;;;;;;;;;;;;;;;;;;;alert('lots of semicolons');;;;;;;;;;;;;;;;;;;
没有任何意义。
关于javascript - javascript中的两个 ";"是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20485050/