📅  最后修改于: 2022-03-11 15:01:16.679000             🧑  作者: Mango
$('input[name="shipping"]').click(function () {
var checked = $(this).is(':checked');
var value = checked ? $(".shipping .country").val() : '';
$(".billing .country").val(value);
});