SOURCE

function my_ajax({
    url = "",
    method = "GET",
    dataType = "json"
} = {}) {
    console.log(method);
}
my_ajax({method: "POST"})
my_ajax();
console 命令行工具 X clear

                    
>
console