【发布时间】:2014-12-18 06:12:32
【问题描述】:
我正在使用http://code.jquery.com/ui/1.10.3/jquery-ui.js 在我的表单中使用日期选择器 使用 1.9.1 jquery.js 但是在这个文件中我得到了错误
TypeError: $.isPlainObject is not a function
if ( $.isPlainObject( value ) ) {
所以出了什么问题。请告诉我
我的 index.php 代码在这里
<!-- Load jQuery JS -->
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<!-- Load jQuery UI CSS -->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<!-- Load jQuery UI Main JS -->
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<!-- Load SCRIPT.JS which will create datepicker for input field -->
<script src="script.js"></script>
【问题讨论】:
-
你能告诉我们你的代码吗?
-
尝试使用 $.noConflict();
-
if在函数中?如果不是...if加载了$(document).ready()? -
导致此错误的代码在哪里?是在
script.js吗? -
在 jquery-ui.js 中没有给出错误
标签: javascript php jquery