fix ie8 bug
fix ie8 bug

since IE doesn't support trim() and indexOf method, so I add it

xsanisty/jquery-calx,luchaoshuai/jquery-calx,xsanisty/jquery-calx,luchaoshuai/jquery-calx,luchaoshuai/jquery-calx