Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.load 是一个异步函数。jQuery 将在 .load 运行时继续执行这些行,因此第二个$("#category_A1").val("<?php echo $_POST['category_A1']; ?>");将始终被以下结果覆盖$("#category_A1").load("http://domain.com/loader/"+$("#category_A0").val());
$("#category_A1").val("<?php echo $_POST['category_A1']; ?>");
$("#category_A1").load("http://domain.com/loader/"+$("#category_A0").val());