Please explain the following way of writing a function in javascript functions :
(function (){
// some code
})()
I understand the fact that because of the trailing braces " () ", the function will execute immediately but but what does enclosing the function in the braces mean?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…