完全没错,import 就是保留字!Table C-1: Reserved Words in JavaScript 1.5  >abstract 
 else 
 instanceof 
 switch 
 
 boolean 
 enum 
 int 
 synchronized 
 
 break 
 export 
 interface 
 this 
 
 byte 
 extends 
 long 
 throw 
 
 case 
 false 
 native 
 throws 
 
 catch 
 final 
 new 
 transient 
 
 char 
 finally 
 null 
 true 
 
 class 
 float 
 package 
 try 
 
 const 
 for 
 private 
 typeof 
 
 continue 
 function 
 protected 
 val 
 
 debugger 
 goto 
 public 
 var 
 
 default 
 if 
 return 
 void 
 
 delete 
 implements 
 short 
 volatile 
 
 do 
 import 
 static 
 while 
 
 double 
 in 
 super 
 with Table C-2: Potentially Reserved Words  As 
 event 
 Is 
 uint 
 
Assert 
 get 
 Namespace 
 ulong 
 
Decimal 
 include 
 Require 
 use 
 
Ensure 
 internal 
 Sbyte 
 ushort 
 
Exclude 
 invariant 
 Set

解决方案 »

  1.   

    重贴一下,哈============================================
    Table C-1: Reserved Words in JavaScript 1.5
    ============================================
    abstract  else  instanceof  switch 
    boolean enum  int  synchronized 
    break export  interface  this
    byte  extends  long  throw 
    case  false  native  throws 
    catch  final  new  transient 
    char  finally  null  true 
    class  float  package  try 
    const  for  private  typeof 
    continue  function  protected  val
    debugger  goto  public  var
    default  if  return  void
    delete  implements  short  volatile
    do  import  static  while
    double  in  super  with============================================
    Table C-2: Potentially Reserved Words
    ============================================
    As event Is uint
    Assert get Namespace ulong
    Decimal include Require use
    Ensure internal Sbyte ushort
    Exclude invariant Set
      

  2.   

    我靠,用JScript这么久,现在才知道