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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -