function calcTotalScore(){
var arr = ["A","B","C","D","E","F"];
$.each(arr, function(n,val){
calcTotal(val);
});
}
calcTotal(value){
// sample code
}
Я использую вышеуказанную функцию calcTotalScore()
на языке шаблонов скорости (VTL), но она говорит:
Encountered "," Was expecting one of:
<EOF>
"(" ...
<RPAREN> ...
<ESCAPE_DIRECTIVE> ...
<SET_DIRECTIVE> ...
"##" ...
"\\\\" ...
"\\" ...
<TEXT> ...
"*#" ...
"*#" ...
<STRING_LITERAL> ...
<IF_DIRECTIVE> ...
<STOP_DIRECTIVE> ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<WORD> ...
<BRACKETED_WORD> ...
<IDENTIFIER> ...
<DOT> ...
"{" ...
"}" ...
Что я делаю не так?