How to read this line?
var cal = $(this).parent().parent(), col; What is this comma?
How to read this line?
var cal = $(this).parent().parent(), col; What is this comma?
In this case, the declaration and initialization of variables that go list. In fact, this is analogous to the following code.
var cal = $(this).parent().parent(); var col; Um .. Enumeration when declaring variables.
var a, b; var a = 32, b; var a = $(this), b; var a = $(this).parent(), b; Source: https://ru.stackoverflow.com/questions/446643/
All Articles