我打算使用一种方法,让使用移动浏览器的用户通过短信发送他们想要购买产品的代码。目前我的做法类似于:
<a href = 'sms:7xxxxxx?body=product-number23xx'>Buy product-number23xx</a>
<a href = 'sms:7xxxxxx?body=product-number24xx'>Buy product-number24xx</a>
<a href = 'sms:7xxxxxx?body=product-number56xx'>Buy product-number56xx</a>
这段代码可以在Symbian和Java平台上运行,但不能正确地在其它移动平台上运行,如Darwin、Windows CE和Mobile OS。请问有谁能帮我提供适用于其他平台的样例代码吗?
我还看到了这个问题,我试过使用mailto:
和tell:
,但前者会打开电子邮件客户端,后者只会将号码添加到手机联系人中!