首页 \ 问答 \ jQuery datepicker年显示(jQuery datepicker years shown)

jQuery datepicker年显示(jQuery datepicker years shown)

使用jQuery datepicker,如何更改显示的年份范围? 在jQuery UI网站上,它表示默认为“今年前后10年”。 我想用这个生日快乐,10年前,今天不好。 这可以通过jQuery datepicker来完成,还是使用不同的解决方案?

链接到datepicker演示: http : //jqueryui.com/demos/datepicker/#dropdown-month-year


With the jQuery datepicker, how does one change the year range that is displayed? On the jQuery UI site it says the default is "10 years before and after the current year are shown". I want to use this for a birthday selection and 10 years before today is no good. Can this be done with the jQuery datepicker or will I have to use a different solution?

link to datepicker demo: http://jqueryui.com/demos/datepicker/#dropdown-month-year


原文:https://stackoverflow.com/questions/269545
更新时间:2024-02-29 22:02

最满意答案

语言跳转可以。 一旦你超过了[]的最初的冲击。 然而,图书馆和框架的冲击将是巨大的。

与.Net框架相比,Cocoa和Touch框架明显更轻,所以至少你可以看到光明的一面,你学习的少一些。 但它们的基本哲学,布局和历史演进路径与C#/ .Net框架截然不同。 这是否容易或难,难以理解。 一些个人意见

  • 可可的构建UI的方式是光年之前的任何东西 .Net框架今天,Forms或WPF。 一开始就难以掌握,但如果你的意思是这样,那将会很有意义。 它是基于Smalltalk框架的好的“ 模型 - 视图 - 控制器” ,并且将自然地引导您设计UI的正确路径。
  • 图形,视频,媒体将来自另一个星球,来自.Net背景。 但尽管它们的表现非常神秘,但Cocoa的产品却非常强大,尽管不尽如人意。
    • 可可绘图指南简介
    • 石英2D概述
    • 核心视频编程指南简介
    • 核心音频概述
  • 动画将是一个巨大的叹息。 可可动画简单易用 ,而且.Net中没有什么相似之处
    • 核心动画编程指南简介
  • 如果你做OpenGL而不是Cocoa的原生图形,那么OpenGL和openGL在任何平台上都是一样的。
  • 网络编程在可可方面较差。 你有一些基本的支持,不得不承认,至少API的设计真的很难做愚蠢的东西(它强制你使用异步编程,所以没有更多的单线程每个客户端非感觉),但我' d赌你会错过.Net糖工具(WebRequest,WebClient等)
    • NSConnection类参考
    • 分布式对象简介
  • XML解析。 可可支持只是简单的原始。 至少,XML解析是事件驱动的,所以要引导你更好的程序,但是组合起来很复杂。
    • Cocoa事件驱动XML编程指南简介
  • 数据库。 将是一个不同的世界。 您可以选择进行原始SQLite或核心数据。 核心数据更好。 是一个高水平的ORM和活跃的记录种类的东西,底层存储的所有错综复杂的抽象出来。 易于使用和强大,只要你要求它做一些它知道如何做的事情。 令人难以置信的麻烦,迫使它做一些不知道该怎么办的事情。 对于任何ORM,最终都是真的。 你会想念LINQ,你必须忘记SQL。 其要点是,.Net中的DB编程经验不会转移到Core Data世界。 原始SQLite的替代方案看起来更加熟悉,但是级别非常低,将会比2010年的.NET更像是编写1990年的ODBC。
    • 核心数据编程指南简介
  • 键值编码编程 。 这个概念没有直接的.Net等价物。 这可能听起来像某种简单的字典,但其实是更强大的方式。 它与[Objective-C]的Objective部分的运行时引擎进行交互,并产生一些整洁的技巧。 您需要了解键值编码才能有效利用Core Animation或Core Data。 您可以将其视为类固醇的反射。 它可以实现Linq对对象可以做的一些相同的技巧,但不会像Linq那样优雅。
  • 是C ++。 Objective-C是C ++的超集 ,并且由最近的gcc下载支持,所以你可以随时回到C ++。 STL ,函子, 模板元编程 ,它们都工作。 您可以在同一应用程序中混合使用纯Cocoa和Core Objective-C与C ++。 您将无法做一些像C ++类继承Objective-C类的内容,但是您可以在C ++类和Objective-C对象之间进行通信。 不知道boost或Loki支持的当前状态是什么。

Cocoa的许多地区都有不同的第三方图书馆,但是我无法比较所有Cocoa第三方与.Net 3r方面的对比,我有一个生命...

总的来说,我将很快总结一下, 在Objective-C中,条目栏更高。 带大脑


The language jump is OK. Once you get past the initial shock of [ and ]. However, the libraries and Framework shock will be substantial.

The Cocoa and Touch frameworks are significantly lighter when compared with .Net Framework, so at least you can look at the bright side, you have less to learn. But their underlying philosophy, layout and historic evolution path is very different from the C#/.Net framework. Whether this will be easy or hard, is difficult to appreciate. Some personal opinions:

  • The Cocoa way of building UI is light years ahead of anything .Net framework has today, Forms or WPF. It will be difficult to grasp at first, but if your grok it, it will make a LOT of sense. It is good ole' Model-View-Controller based on Smalltalk framework and will naturally guide you down a right path of designing UI.
  • Graphics, video, media are going to feel as from another planet when coming from .Net background. But despite their apparent arcane appearance, the Cocoa offerings are very powerful, although somehow low level.
  • Animation is going to be a huge sigh of relief. Cocoa animation is just plain easy to use, and there isn't anything equivalent in .Net
  • If you do openGL instead of Cocoa native graphics, then is openGL and openGL is pretty much the same flavor on any platform.
  • Network programming is poorer on Cocoa side. You have some basic support and gotta admit that at least the API is designed that is really hard to do stupid stuff (it forces you to use async programming, so no more one-thread-per-client non-sense), but I'd bet you'll miss the .Net sugar utilities (WebRequest, WebClient etc)
  • XML parsing. Cocoa support is just plain primitive. At least, again, the XML parsing is event driven so is going to guide you toward better programs, but is complicated to put together.
  • Database. Is going to be a different world. You have the choice of going raw SQLite or Core Data. Core Data is better imho. Is a high level ORM and active record kind of stuff, with all the intricacies of the underlying storage abstracted away. Easy to use and powerful, as long as you ask it to do something it knows how to do. Unbelievably cumbersome to force it to do something it doesn't know how to do. True for any ORM, ultimately. You'll miss LINQ, and you'll have to forget SQL. The gist of it is that the DB programming experience from .Net just doesn't transfer to Core Data world. The alternative of raw SQLite will look more familiar, but is very low level, will feel more like programing 1990 ODBC than 2010 .Net.
  • Key-Value Coding Programming. This concept has no direct .Net equivalent. It may sound like some sort of simple dictionary, but in fact is way more powerful. It interweaves with the runtime engine of the Objective part of [Objective-C] and gives birth to some neat tricks. You'll need to understand Key-Value coding to make efficient use of Core Animation or Core Data. You can think at it as reflection on steroids. It can achieve some of the same tricks Linq-to-Objects can do, but is not going to be anywhere as elegant as Linq.
  • Is C++. Objective-C is a superset of C++ and is backed by recent drops of gcc, so you can fall back to C++ anytime. STL, functors, template metaprogramming, they all work. You can mix and match in the same application pure Cocoa and Core Objective-C with C++. You won't be able to do something like inherit an Objective-C class as a C++ class, but you will be able to communicate between a C++ class and an Objective-C object. Not sure what is the current status of boost or Loki support.

Many of the areas covered poorly in Cocoa have various 3rd party libraries, but I can't enter into comparison all Cocoa 3rd parties vs. .Net 3r parties, I have a life...

Overall, I would sum it up shortly as In Objective-C the entry bar is higher. Bring a brain.

相关问答

更多
  • Kochan是我推荐的学习Objective-C的唯一途径,适用于从许多背景来到ObjC的人。 The one and only tome I recommend for learning Objective-C for people coming to ObjC from really many backgrounds, is Kochan.
  • 语言跳转可以。 一旦你超过了[和]的最初的冲击。 然而,图书馆和框架的冲击将是巨大的。 与.Net框架相比,Cocoa和Touch框架明显更轻,所以至少你可以看到光明的一面,你学习的少一些。 但它们的基本哲学,布局和历史演进路径与C#/ .Net框架截然不同。 这是否容易或难,难以理解。 一些个人意见 可可的构建UI的方式是光年之前的任何东西 .Net框架今天,Forms或WPF。 一开始就难以掌握,但如果你的意思是这样,那将会很有意义。 它是基于Smalltalk框架的好的“ 模型 - 视图 - 控制器” ...
  • 没有任何语言是完美的任务,Objective-C也不例外,但有一些非常具体的细节。 就像使用LINQ和var (我不知道直接替换),其中一些是严格的语言相关的,其他的是与框架相关的。 ( 注意:正如C#与.NET紧密耦合,Objective-C与Cocoa紧密耦合,因此,我的一些观点可能与Objective-C无关,但没有Cocoa的Objective-C类似于C#,没有.NET / WPF / LINQ,运行在Mono下,等等。这不是通常情况下完成的。) 我不会假装充分阐述差异,优点和缺点,但这里有一些想 ...
  • 没有。 http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29 http://en.wikipedia.org/wiki/Objective-C 奖励:Objective-C可以由GCC编译,可以在Windows上运行。 No. http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29 http://en.wikipedia.org/wiki/Objective-C ...
  • 1.内存管理 我认为最大的好处之一就是Obj-C需要的显式内存管理。 至少,有一个垃圾收集器,但你必须明智地选择。 我不能告诉你C#有多少线程死锁和内存泄漏,因为我希望GC能为我完成我的工作。 它教给我的是使C#中几乎所有的类都实现IDisposable 。 任何对象都不应该假定妈妈会为他清理房间。 2.信息发送 “消息传递”与其说是“方法”的概念,不如说对我来说更为现实。 您向对象发送一条消息,告诉它该做什么。 它主要是语义学,但它可以在设计类的方式上发挥重要作用。 3.消息语法 有些人认为obj-c消息 ...
  • 自问题以来一周,零响应。 如果您找到一个让您解析和转换ObjectiveC代码的ObjectiveC工具,我会感到惊讶。 这些工具一般很难构建,而且ObjectiveC中没有明显的需求。 Clang似乎是处理AST的一种选择,但它显然没有在ObjectiveC中编码。 我没有任何直接的经验,但我知道Clang将解析ObjectiveC并构建一个AST。 我想你可以修改AST,但我不知道你是否可以从中重新生成ObjectiveC代码; 我听说你可以从一个Clang AST为解析的C ++程序生成C ++代码。 ...
  • 这是我的个人意见: 我已经在.NET世界呆了一段时间了。 当iPhone启动创建本地应用程序的能力时,它引起了我的注意。 我真的很想学习Objective-C。 我读了两本书,开始尝试尝试并尝试一个月,然后我离开了iPhone编程,因为你必须在.NET上制作大量的东西才需要一行代码。 当Miguel de Icaza推出MonoTouch时,我试了一下,我意识到我以前完成的大部分代码都是功能齐全的。 我一直试图将UI代码和业务代码分离开来,这真的是iPhone上.NET的一个重点 - 将大部分已经完成的业务 ...
  • 我认为Objective-C可以成为一门优秀的第一语言,特别是如果你对移动编程感兴趣的话。 我不一定会建议转换到学习不同的语言,但如果你真的想学习如何编程我会建议你学习尽可能多的语言。 许多不同的语言都有不同的思考问题,不同的好处和不同的文化的方式,并且让自己暴露于用其他语言做事的不同方式将使你在长期结束的任何语言中变得更好。 I think Objective-C can be a fine first language, particularly if you're interested in doin ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。