[英]Javascript works when loaded on browsers but not when i put it in codepen or jsfiddle?
Can anyone find out what this javascript isn't working?谁能找出这个 javascript 不起作用的地方? It works when i load it in chrome and firefox.
当我在 chrome 和 firefox 中加载它时,它可以工作。 I put it on codepen to show for a intern position but it's not working on codepen or jsfiddle, not sure why.
我把它放在 codepen 上展示实习职位,但它在 codepen 或 jsfiddle 上不起作用,不知道为什么。
http://codepen.io/anon/pen/egpEG/ http://codepen.io/anon/pen/egpEG/
You should include jQuery to the fiddle or CodePen.您应该在 fiddle 或 CodePen 中包含 jQuery。 You can add the following HTML code in your code pen:
您可以在代码笔中添加以下 HTML 代码:
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.