Home > front end >  Ask for help.
Ask for help.

Time:10-08

Used PHP, words on a page table values, is to see a sample, I wrote a lot of similar values, then the error, I value this wrong operation?
Var objectList=new Array ();
ObjectList. Push (new Persion (' type 1 '{$data [' MyScore] [0] [' nine1]} - {$data [' MyScore] [0] [' avgnine1]}));
ObjectList. Push (new Persion (' type ii '{$data [' MyScore] [1] [' nine2]} - {$data [' MyScore] [1] [' avgnine2]}));
ObjectList. Push (new Persion (' third type '{$data [' MyScore] [2] [' nine3]} - {$data [' MyScore] [2] [' avgnine3]}));
ObjectList. Push (new Persion (' the fourth type '{$data [' MyScore] [3] [' nine4]} - {$data [' MyScore] [3] [' avgnine4]}));
ObjectList. Push (new Persion (' the fifth type '{$data [' MyScore] [4] [' nine5]} - {$data [' MyScore] [4] [' avgnine5]}));
ObjectList. Push (new Persion (' sixth type '{$data [' MyScore] [5] [' nine6]} - {$data [' MyScore] [5] [' avgnine6]}));
ObjectList. Push (new Persion (' 7 type '{$data [' MyScore] [6] [' nine7]} - {$data [' MyScore] [6] [' avgnine7]}));
ObjectList. Push (new Persion (' eighth type '{$data [' MyScore] [7] [' nine8]} - {$data [' MyScore] [7] [' avgnine8]}));
ObjectList. Push (new Persion (' 9 type '{$data [' MyScore] [8] [' nine9]} - {$data [' MyScore] [8] [' avgnine9]}));
ObjectList. Sort (function (a, b) {return b.a ge ge} - a.a);

Error:

Uncaught SyntaxError: Unexpected token '['
Cc_result_ninehouse: 574 Uncaught SyntaxError: Unexpected token '['
Cc_result_ninehouse: 682 Uncaught SyntaxError: Unexpected token '['
Cc_result_ninehouse: 718 Uncaught SyntaxError: Unexpected token '['
Cc_result_ninehouse: 780 Uncaught SyntaxError: Unexpected token '['
Cc_result_ninehouse: 822 Uncaught SyntaxError: Unexpected token '['
Cc_result_ninehouse: 910 Uncaught SyntaxError: Unexpected token '['
  • Related