Script1006错误Internet Explorer

我在以下代码中使用Internet Explorer收到了script1006错误:

function scroll(top = 0) { $('html,body').add('html,body', window.parent.document).animate({scrollTop: top}, "slow"); } 

它适用于Firefox,Chrome和Safari。