Windows phone 7 如何在cordova的windows phone7中发送短信

Windows phone 7 如何在cordova的windows phone7中发送短信,windows-phone-7,cordova,Windows Phone 7,Cordova,我正在使用window.location.href='tel:'+contactno;它工作得很好。但是当我使用window.location.href=“sms:+contactno+”?body=“+messagetext;它不适用于windows phone7,有人能帮我吗?我已经尝试了很多。标记: <pre> <div> <input type="tel" id="phoneNumbers" /> <inp

我正在使用window.location.href='tel:'+contactno;它工作得很好。但是当我使用window.location.href=“sms:+contactno+”?body=“+messagetext;它不适用于windows phone7,有人能帮我吗?我已经尝试了很多。

标记:

<pre>
    <div>
        <input type="tel" id="phoneNumbers" />
        <input type="text" id="message" />
    <div>
</pre>
phoneNumbers
字段支持用逗号、空格和逗号+空格分隔电话号码。例如,这应该起作用:

111111111, 222222222,333333333 444444444, 55555555
$(function () {
    var message = $('#message').val();
    $.each($('#phoneNumbers').val().split(/[ ,]+/)), function (phoneNumber) {
        SmsPlugin.prototype.send(phoneNumber, message, '');
    });
});
111111111, 222222222,333333333 444444444, 55555555