ie6 javascript js 缺少标识符总结

    技术2022-05-20  32

    ie6 javascript js 缺少标识符总结1. ie6下,javascript代码中,不能出现保留字符。解决办法就是避免直接使用JS的保留字符。2. IE和Firefox不兼容的地方.属性之间是要用","分隔的,但最后一个属性的后面在IE中是不能有的,firefox可有可无.至于最后的";"是另外一回事了.这是Javascript的语法问题.如果后面没有其它js语句时";"可以省略.附:JavaScript的保留字

     

    abstract

    boolean  break  byte

    case  catch  char  class  const  continue

    default  do  double

    else  extends

    false  final  finally  float  for  function

    goto

    if  implements  import  in  instanceof  int  interface

    long

    native  new  null

    package  private  protected  public

    return

    short  static  super  switch  synchronized

    this  throw  throws  transient  true  try

    var  void

    while  with


    最新回复(0)