Closed houmingjie closed 7 years ago
Hmm there must be a way to fix this without try/catch... Is it just that value
cannot be NaN?
Not only NaN. It seemed to be all invalid format will cause an exception in IE8.
eg.
document.getElementById("app").style.borderColor = 'redd'
I see your point. May be it's better to handle invalid value before call this lib. Close this PR. :)
if value is invalid ( NaN ) : IE8 will throw an exception,other browser just ignore it and do nothing