3/11/2011

javascript failed in IE

我決定要留一篇集合文,以免老是不小心踩到雷=.=

  1. trim:
    string.trim() will fail in IE, you have to use trim(string)

  2. event.target:
    use event.srcElement instead of event.target

0 comments: