我正在使用以下代码用 jquery 加载一些片段
var box = $(this).closest(".product-contain").children(".title:first");
box.load(url + " .maintitle", data);
var box = $(this).closest(".product-contain").children(".detail:first");
box.load(url + " .alldetail", data);
(我不想一次加载整个 .product-contain ,因为其中一部分正在由用户同时编辑)
但它会向服务器发出 2 个相同内容的请求。
我可以通过一个请求以某种方式做到这一点吗?
谢谢!