【问题标题】:XMLHttpRequest Methods not working with jquery plugin in IndexedDBXMLHttpRequest 方法不适用于 IndexedDB 中的 jquery 插件
【发布时间】:2014-03-26 21:01:45
【问题描述】:

在我的 IndexedDB 应用程序中,我使用 XMLHttpRequest 来联系我的服务器端方法。之后,我添加了 jquery 插件到我的项目并在我的页面中引用它,现在它显示错误为 “方法未定义”,如果我评论 jquery 引用,它工作正常.. 但我想使用 jquery,如何避免该错误,给我一些建议..

【问题讨论】:

  • 什么方法没有定义?
  • 我的方法包含 XMLHttpRequests

标签: jquery xmlhttprequest


【解决方案1】:

您是否将 ajax 请求放入 jQuery 就绪回调中?

$(function(){
   $.ajax ...
});

【讨论】:

  • 如果我引用 jquery 插件,它会显示错误为 "Your Method is not defined"... 任何原因引发这样的错误..跨度>
猜你喜欢
  • 2021-06-22
  • 2020-10-08
  • 2017-10-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-03-12
  • 2012-09-17
  • 2011-01-07
相关资源
最近更新 更多