I created a function like this:
function saveItem(andClose = false) {
}
It works fine in Firefox
In IE it gives this error on the console:
Expected ')'
In Chrome it gives this error in the console:
Uncaught SyntaxError: Unexpected token =
Both browsers mark the source of the error as the function creation line.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…