Timepicker jquery不工作(没有方法curCSS)

Orv*_*vyl 8 jquery codeigniter timepicker

由于这个错误,我的头已经痛苦了一天.

The jQuery object is actually just the init constructor 'enhanced'
    return new jQuery.fn.init( selector, context, rootjQuery );
} has no method 'curCSS' 
Run Code Online (Sandbox Code Playgroud)

我的HTML是:

<input class="field2" type="text" name="time" placeholder="Time" value ="<?php echo $this-   >input->post('time'); ?>" id = "timepicker"/></div>
Run Code Online (Sandbox Code Playgroud)

我目前正在使用代码点火器,我也使用日期选择器.我认为包含的js库存在冲突,但仍然无法调试它.

编辑:这些是包含的js

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>

<script type="text/javascript" src="<?php echo base_url() ?>js_front/jquery-1.8.3.js"></script>

<script type="text/javascript" src="<?php echo base_url() ?>js_front/ui/jquery.ui.core.js"></script>

<script type="text/javascript" src="<?php echo base_url() ?>js_front/ui/jquery.ui.widget.js"></script>

<script type="text/javascript" src="<?php echo base_url() ?>js_front/ui/jquery.ui.datepicker.js"></script>
Run Code Online (Sandbox Code Playgroud)

这里是将timepicker分配到输入标签类型文本中

$(function() {
$( "#timepicker" ).timepicker();
Run Code Online (Sandbox Code Playgroud)

});

dtb*_*rne 17

你使用的是什么版本的jQuery?curCSS在1.8中已弃用并删除.要么使用旧版本的jQuery,要么在时间码代码中将"curCSS"替换为"css".

http://bugs.jquery.com/ticket/11921