Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么报这个错误啊 #90

Open
xiaobai87 opened this issue Mar 23, 2017 · 1 comment
Open

为什么报这个错误啊 #90

xiaobai87 opened this issue Mar 23, 2017 · 1 comment

Comments

@xiaobai87
Copy link

Uncaught TypeError: $(...).fullpage is not a function?

<script type="text/javascript"> $('.wp-inner').fullpage(); </script> <script type="text/javascript" src="//cdn.bootcss.com/zepto/1.2.0/zepto.js"></script> <script type="text/javascript" src="zepto.fullpage.js"></script>
@yanhaijing
Copy link
Owner

调用代码必须放到 引入zepto.js和fullpage.js之后

<script type="text/javascript" src="//cdn.bootcss.com/zepto/1.2.0/zepto.js"></script>
<script type="text/javascript" src="zepto.fullpage.js"></script>
<script type="text/javascript"> $('.wp-inner').fullpage(); </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants