Uncaught TypeError: Cannot read property 'top' of undefined

前端 未结 6 2274
长情又很酷
长情又很酷 2020-11-30 23:06

I apologize if this question has already been answered. I\'ve tried searching for solutions but could not find any that suited my code. I\'m still new to jQuery.

I h

6条回答
  •  有刺的猬
    2020-11-30 23:53

    The problem you are most likely having is that there is a link somewhere in the page to an anchor that does not exist. For instance, let's say you have the following:

    Skip to examples
    

    There has to be an element in the page with that id, example:

    Here are the examples

    So make sure that each one of the links are matched inside the page with it's corresponding anchor.

提交回复
热议问题