jQuery UI 1.7.3 datepicker与date.js冲突导致“太多的递归"吗? [英] jQuery UI 1.7.3 datepicker conflict with date.js causing "too much recursion"?

查看:136
本文介绍了jQuery UI 1.7.3 datepicker与date.js冲突导致“太多的递归"吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在jQuery UI对话框中使用jQuery UI 1.7.3 datepicker小部件.对话框的内容来自页面模板,该模板包含使页面功能所需的所有各种javascript导入.我还要导入的东西之一就是著名的date.js文件.

I'm trying to use jQuery UI 1.7.3 datepicker widget in a jQuery UI dialog. The contents of the dialog are from a page template which includes all the various imports of javascript required to make the page function. One of the things I also import is the famous date.js file.

我在对话框中加载的页面也独立存在.日期选择器在这里就像一个饰物.当我将其加载到对话框中时,一切都中断了.当焦点放在日期输入字段时,应该显示日期选择器.但是,我收到了一个令人恶心的错误,如下所示:

This page that I load in the dialog also exists by itself as a standalone page. The datepicker works like a charm there. Everything breaks when I load it in the dialog. When focus is given to the date input field, the datepicker should show up. However, I get a disgusting error like so:

too much recursion
[Break on this error] return w;};Date.prototype.isDST=function...ase"z":return"";}}):this._toString();};\n

日期选择器日历未显示,并且在萤火虫中出现1个错误,提示它是date.js呕吐.过去,我在处理过多的递归时遇到了类似的问题,但我永远不太确定如何解决此类错误.

The datepicker calendar doesn't show and I get 1 error in my firebug saying that it's date.js that is puking. I've ran into similar problems like this in the past dealing with too much recursion but I am never too sure how to fix such errors.

有人可以告诉我怎么回事吗?

Can someone tell me what's the matter?

推荐答案

我已成功在模式jqueryui对话框(版本1.8.9)中使用datepicker.但是我将.js包含为多合一".

I'm successfully using the datepicker in a modal jqueryui dialog, version 1.8.9. But I'm including the .js as a 'all-in-one'.

您应该尝试更新jqueryui或使用完整的软件包作为一个文件进行测试,如果它不起作用,请提供失败的测试用例,以便我们进行研究.

You should try to update jqueryui or use the complete package as one file for testing, and if it does not work, provide a failing test case so we can look at it.

这篇关于jQuery UI 1.7.3 datepicker与date.js冲突导致“太多的递归"吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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