Idd.chiang release Time: April 29, 2010 Category: Javascript/as
On the internet was fortunate to see the Yi people through ie and non-IE browser to vertical tab support features to make a short term:
Above out to bytes, EHR ... 9, EHR ... 7!!! To know if your browser is IE (requires FQ)
And more cattle, it is said that the Russian Hercules with a length of 6byte to the above already seemingly can not be any shorter criteria record refresh, as follows:
Made use of the differences between IE and standard browser in handling the ToString method of the array. For a standard browser, if the last character in the array identifier a comma, the JS engine automatically rejects it.
Oneself test a bit, the effect is good, recommend to everybody to see
if (!-[1,]) { alert (' Is ie! ')}else{
Whether this method is worth popularizing must be verified by everyone, but it is not yet the most effective method, but this trickery can be used in many agile development needs.
Javascript is the shortest way to determine if the browser is IE