[英]javascript typewriter not printing words
I cant get my javascript type to print on the page, maybe im calling it wrong? 我无法在页面上打印我的JavaScript类型,也许即时通讯称错了吗? Im using a rails app. 我正在使用Rails应用。
on the homepage using haml 在首页上使用haml
.element Create and write something cool using javscript typewriter
in my js file 在我的js文件中
$( document ).ready(function(){
$(".element").typed({
strings: ["Create and write something cool using javscript typewriter "],
typeSpeed: 1
});
});
Please make sure you add reference to typed.js
after jquery.js
as follows: 请确保在jquery.js
之后添加对typed.js
引用,如下所示:
<script src="jquery.js"></script>
<script src="typed.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.