jQuery Marquee是否适用于jquery 1.6.4? 这里有http://plugins.jquery.com/marquee/的信息,库可以使用jquery> = 1.6.4。 这是我的代码:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="https://raw.github.com/tobia/Pause/master/jquery.pause.js"></script>
<script src="http://jquery.aamirafridi.com/jquerymarquee/jquery.marquee.js"></script>
<script>
$(function(){
$('#marquee').marquee();
});
</script>
<style type="text/css">
.marquee {
width: 300px;
overflow: hidden;
border:1px solid #ccc;
}
</style>
<body>
<div id='marquee' class='marquee'>Less text here</div>
</body>
答案 0 :(得分:0)
所以我为你做了测试
Error says: "Uncaught TypeError: Object [object Object] has no method 'on' "
答案是否定的,因为jQuery 1.7中引入了on()
。升级而不是使用过时的jQuery版本!