Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 platformRequest 发起涉及特殊字符的调用,例如 * 或 #
例子:
platformRequest("tel:*123#");
或者请替代platformRequest。
详细信息: 诺基亚 N70 CLDC 1.0 MIDP 2.0
好吧,既然platformRequest()接受 URL 字符串作为其参数,我的猜测是该字符串参数中的字符必须是 URL 编码的。
platformRequest()
所以,由于"*"不是保留字符,它可以保持这种状态。但是"#"必须像这样编码,"%23"因为它是“不安全字符”。
"*"
"#"
"%23"
我的猜测是这会起作用:
platformRequest("tel:*666%23");
或者您也可以进行 URL 编码*:
*
platformRequest("tel:%2A666%23");