我正在尝试加载countdown js
,但是当我启动最终脚本时,我遇到了常见的Uncaught TypeError: $(...).final_countdown is not a function
错误。
我看到我必须在倒计时之前加载jQuery,所以我做了,但仍然没有工作。
这是倒计时的example,事实是我如何将其整合到我收到错误的网站?
要访问该网站,请点击here>搜索并单击“科学委员会”>点击以前的会议
答案 0 :(得分:-1)
final_countdown还取决于kineticjs库:See requirements section尝试在final_countdown脚本之前添加kineticjs:
<script src="//cdnjs.cloudflare.com/ajax/libs/kineticjs/5.2.0/kinetic.min.js"></script>
答案 1 :(得分:-1)
Try Changing the date: Currently its Jan 1 2015
var start = Math.round(new Date("Jan 1 2015 08:00").getTime()/1000);
var now = Math.round(new Date().getTime()/1000);
var end = start + (122 * 86400); // 86400 = 1 day
$('.countdown').final_countdown({
'now': now,
'start': start,
'end': end
});
and keep a local copy of coutdown js
//未捕获TypeError:$(...)。final_countdown不是函数可能只是得到解决