无法在Trent Richardson日期时间选择器中显示图标 [英] Not able to show icon in Trent Richardson datetime picker

查看:66
本文介绍了无法在Trent Richardson日期时间选择器中显示图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是 jsFiddle 中的有效示例. 仅当我使用jQuery UI 1.8.18时才显示该图标,如果我使用的是jQuery UI 1.8.21的最新版本,则该图标不会显示?

Here is working example in jsFiddle. The icon shows only when I am using jQuery UI 1.8.18, if I am using the latest version which is jQuery UI 1.8.21, then the icon won't show up?

是否存在错误或我缺少什么?

Is there a bug or am I missing something?

Trent日期时间选择器文档位于 此处 .另外,所有的datepicker选项仍然可以通过timepicker插件使用."

The Trent datetime picker documentation is here.It says "In addition all datepicker options are still available through the timepicker addon."

谢谢.

推荐答案

错误:$(#from-datetime").datetimepicker不是函数 源文件: http://fiddle.jshell.net/_display/ 行:73

Error: $("#from-datetime").datetimepicker is not a function Source File: http://fiddle.jshell.net/_display/ Line: 73

这只是一个datepicker而不是datetimepicker Datetimepicker是另一个jquery插件,可能与最新的JUI不兼容

It's just a datepicker not datetimepicker Datetimepicker is another jquery plugin, may be it's not compatible with newest JUI

工作示例 http://jsfiddle.net/uDVwx/3/

关键是您必须按以下顺序调用:jquery,jquery ui,jquery插件.但是当我查看控制台调试时,datetime picker addon和jquery ui 1.8.21

The point is you have to call in this order: jquery, jquery ui, jquery addons. But as I look at the console debug, there is an error with datetime picker addon and jquery ui 1.8.21

这篇关于无法在Trent Richardson日期时间选择器中显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆