我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

ajax插入并选择连续不正常工作

I'm making a pos system. looking for a product in the search bar or entering the barcode, I create ajax requests: add the product to the cart (insert in pos) load the list in the cart (select pos)

the problem I'm seeing is that when I load the list, sometimes it skips the update request. i tried to use

$.when(func of add product).then(func of load list); 

and

$.ajax(... func of add product).done(func of load list); 

but nothing. How is it possible?

近期文章

  • 在laravel控制器中不重复的随机字符串生成器
  • 如何通过ajax在php上发送多个创建的输入字段的值
  • Wordpress:如果将html / php混合到帖子中,则插入块的最佳做法
  • DateTime-> format()不返回字符串
  • 检查SQL PHP上的两列是否匹配
  • 找不到工作的Laravel Routes 404
  • PHP和FITS(灵活的图像传输系统)
  • 如何在php中创建带有模糊图像背景的图像
  • 与Php / mysqli的麻烦 - 不再工作
  • 多个require()调用VS只是一个文件较大的?
  • 如何使用HTTP参数修复未定义的索引错误?
  • 如何在php中显示数据(由bool类型的表列名称分成2)
  • Laravel 5 JSON Foreach不起作用
  • 使用PDO查询的静态函数错误
  • 用于图库短代码的WP插件
  • PHP按数字键排序数组
  • 不能将loadHTMLfile或file_get_contents用于外部URL
  • 自动为用户插入的每个自定义分类术语创建新帖子
  • 查询与Mysql记录有关,并且只提取其中的一些
  • AJAX PHP在Node.js中不起作用

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华