weixin_33701564 2010-06-08 17:50 采纳率: 0%
浏览 79

如何缩短jQueryAjax请求时间?

我注意到jQueryAjax请求有时需要1-2秒才能响应,这是正常的吗?有没有办法将时间缩短到最小呢?
响应类型是json,它是一个很小的html代码。
多谢!

  • 写回答

3条回答 默认 最新

  • 零零乙 2010-06-08 17:52
    关注

    Depending on how you coded your solution, the speed largely depends on internet connection from you to server. You can try launch it on localhost to see if it takes that long, if it does, then something is wrong with your code. If you could post a simplified code illustrating the problem we can try to figure it out :D

    评论

报告相同问题?

悬赏问题

  • ¥15 spring后端vue前端
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿