javascript - Code not working in firefox while runs fine in chrome -


how , why following piece of code giving 1 in chrome while gives 2 in firefox.

    var = "2014/04/27"     var b =  "2014/04/09"     var n = a.localecompare(b);     console.log(n); 

i using above code in project , runs fine in chrome buggy in firefox. suggestions or equivalent functions above work welcome. thank you.......

the function implementation differs 1 browser another.

here documentation page firefox : https://developer.mozilla.org/en/docs/web/javascript/reference/global_objects/string/localecompare ...

... , see thread more infos : http://code.google.com/p/v8/issues/detail?id=459


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -