javascript - moment.js error "indexOf not supported" -


i have downloaded latest version of moment.js , tried example website in code:

alert(moment().subtract(10, 'days').calendar()); 

i message property or method indexof not supported object.

i'm using internet explorer 11.

how can solve this?

thanks responses. helpfull. turned out line in way:

meta http-equiv="x-ua-compatible" content="ie=8" 

i deleted line , worked.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -