0

这是我的 jquery 函数,用于调用我希望它使用 C# 执行的 ssl api。在 C# 中是否可能在功能上相同。这个 jquery 函数工作正常。

        $('#dvShowData').html("");
        $('#dvShowData').html("Loading...");
        var CommandParams = {
            login: 'str', 
            password: 'str',
            command: 'str',                  
            ssl_domain_name: 'str'
        };

        jQuery.ajax({
            crossDomain: true,
            url: 'https://api.sslguru.com',
            type: 'POST',
            async: true,
            data: { params: JSON.stringify(CommandParams) },
            success: function (output) {
                // alert(output);
                $('#dvShowData').html("");
                $('#dvShowData').html(output);
            },
            error: function (output) {
                $('#dvShowData').html("");
                alert("error");
            }
        });
4

0 回答 0