phprpc js

    var server_url = "http://127.0.0.1:801/commonapi/newerpapi/api2";

     var function_arr = ['get_inventory_zero'];

     var client = new PHPRPC_Client(server_url, function_arr);

     client.setKeyLength(256);

     client.setEncryptMode(2);

     var re = client.get_inventory_zero(function (result, args, output, warning){

         alert(result);

     });

function (result, args, output, warning){

}

中的result是结果

args参数

output输出



你可能感兴趣的:(phprpc js)