-1

我找到了代码我从Skype 开发网站

从我的网页来电:

Skype.ui({
    name: "call",
    element: "skypeButton",
    participants: ["+390852298965"],
    imageSize: 32
});

但我需要使用从文本框中恢复的动态电话号码拨打电话,例如:

Skype.ui({
    name: "call",
    element: "skypeButton",
    participants: function () {
        return [$("#phonenumber").val()];
    },
    imageSize: 32
});

但这段代码不起作用......希望有人能帮助我!

提前致谢!

4

1 回答 1

0

嘿试试这样

 var var={
        name: "call",
        element: "skypeButton",
        participants: ["+390852298965"],
        imageSize: 32
    };
    var.participants=[$("#phonenumber").val()];
    Skype.ui(var);
于 2013-10-09T18:53:11.573 回答