Useful Notes - yexingxia/webfont GitHub Wiki

encodeURI V.S. encodeURIComponent

  • escape不编码字符有69个:*,+,-,.,/,@,_,0-9,a-z,A-Z
  • encodeURI不编码字符有82个:!,#,$,&,',(,),*,+,,,-,.,/,:,;,=,?,@,_,~,0-9,a-z,A-Z
  • encodeURIComponent不编码字符有71个:!, ',(,),*,-,.,_,~,0-9,a-z,A-Z

关联数组 就是对象 有一点需要注意:var arr = [1,2,3]; arr['a'] = 'a'; arr.length == 3

webkit 属性大全