Uncaught TypeError:Object Object]没有方法“datepicker” [英] Uncaught TypeError: Object Object] has no method 'datepicker'
本文介绍了Uncaught TypeError:Object Object]没有方法“datepicker”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法修复我的网站中的日期戳。我收到的错误是未捕获TypeError:Object [object Object]没有方法'datepicker'.my代码是
I am not able to fix a datepicker in my site.Error i am getting is Uncaught TypeError: Object [object Object] has no method 'datepicker'.my code is
<head>
<script src="{{ STATIC_URL }}scripts/modernizr-2.0.6.min.js"></script>
<script src="{{ STATIC_URL }}scripts/jquery-1.9.1.min.js"></script>
<script src="{{ STATIC_URL }}scripts/jquery-ui.js"></script>
<script src="{{ STATIC_URL }}scripts/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function () {
$( "#datepicker" ).datepicker({
showOn: "button",
buttonImage: "{{ STATIC_URL }}images/icon.png",
buttonImageOnly: true
});
});
</script>
</head>
正在分派错误Uncaught TypeError:Object [object Object]没有方法datepicker
It is dispatching the error"Uncaught TypeError: Object [object Object] has no method 'datepicker'".Can i get a solution for this.
感谢
推荐答案
不要导入jQuery库两次。
Do not import the jQuery library twice.
这是所有问题的主要原因,例如
This is the main cause for all the problem like these
这篇关于Uncaught TypeError:Object Object]没有方法“datepicker”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文