1
我試圖在中間人使用鍵入的js,我不能得到它的工作。鍵入js不工作在中間人
在index.html.erb
<span class="elementTyped"></span>
在all.js
//= require_tree .
//= require jquery
//= require bootstrap-sprockets
<script src="jquery.js"></script>
<script src="typed.js"></script>
<script>
$(function(){
$(".elementTyped").typed({
strings: ["My name is example", "I am a developer"],
typeSpeed: 0
});
});
</script>
佈局
<%= javascript_include_tag "all" %>
即時結算做錯了,https://jsfiddle.net/uw9uqc30/1/