I have following java scripts code which runing well in chrome but fail in firefox and IE. the error message of FF is 'ReferenceError: Intl is not defined' the error message of IE is 'SCRIPT5009: 'Intl' is undefined '
<script>
var co = new Intl.Collator('pinyin');
console.log(co);
var co = new Intl.Collator('zh-Hans');
console.log(co);
var co = new Intl.Collator('zh-Hans-CN');
console.log(co);
</script>
I just wonder why the standard object Intl can't be refer in FF or IE? did I miss something?