问题
I'm trying to extend jQuery's datepicker via the $.widget
function, jQuery UI 1.10.3, with $.ui.datepicker
as the base.
It seems that $.ui.datepicker
is an object (unlike pretty much all the other widgets) and $.widget
throws a TypeError when trying to instantiate the base.
Is there any way around this?
回答1:
From comments by blgt:
The datepicker does not use the widget factory and thus you can't use it to extend it
It seems like there is a rewrite underway, which should implement Datepicker using the widget factory.
来源:https://stackoverflow.com/questions/25011698/extending-jquery-ui-datepicker