截至今天,这是已知的行为:
http://groups.google.com/group/prototype-
scriptaculous/browse_thread/thread/e71c7a6bfb656380/7d1c8a23edc07f03?lnk=gst&q=exception+sallowed#
这里有一个增强功能,可以处理这些吞咽的异常:
https://prototype.lighthouseapp.com/projects/8886/tickets/634-no-exception-
on-error-in-oncreate-method-of-
ajaxrequest
建议的一种解决方法是添加以下代码(感谢Glenn Maynard!):
Ajax.Responders.register({ onException: function(request, exception) { (function() { throw exception; }).defer(); } });
希望在解决永久问题之前能够帮助其他遇到相同问题的人。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)