Uncaught TypeError: Object #<Object> has no method 'movingBoxes'

前端 未结 10 621
既然无缘
既然无缘 2020-12-08 19:06

Im trying to use the movingBoxes plugin with my asp.net mvc site and it is not working (obviously). I have the movingboxes.js imported in my head tag in the site.master lik

10条回答
  •  攒了一身酷
    2020-12-08 19:51

    There are a few things you can try to get this working.

    1. Be ABSOLUTELY sure your script is being pulled into the page, one way to check is by using the 'sources' tab in the Chrome Debugger and searching for the file.

    2. Be sure that you've included the script after you've included jQuery, as it is most certainly dependant upon that.

    Other than that, I checked out the API and you're definitely doing everything right as far as I can see. Best of luck friend!

    EDIT: Ensure you close your script tag. There's an answer below that points to that being the solution.

提交回复
热议问题