<script>
$(function () {
$.ajax({
url: " https://xx.php",
type: "post",
data: data,
dataType: 'json',
success: (res) => {
},
error: (err) => {
}
})
})
</script>