Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的 github 页面站点上使用 typed。它在网站上不起作用,但如果我将代码复制到 jsfiddle 中它确实有效。这是为什么?
github page: http://materechm.github.io/ github code: github.com/materechm/materechm.github.io jsfiddle: http://jsfiddle.net/albburtsev/8CbL2/
交换这两行:
<script src="typed.js"></script> <script src="jquery-2.1.4.min.js"></script>
您需要首先包含 jQuery。
另外,您输入了两次,删除此行:
<script src="js/typed.min.js" type="text/javascript"></script>