I'm trying to look for a how I can pass the value from in input textbox *href="sms:?body" It is a dynamic value that changes every time a user creates a new account. The idea is that once I click on the "Send Invite by SMS" the value or referral code that is included in the input text will also be included in the SMS body message.通行證或輸入文本值追加到<a href="sms?:body=">
採樣工作正在進行中
<input class="input" disabled="true" placeholder="Referral Code" ng-model="account.referral_code_string" id="input-refcode">
<a ng-model="account.referral_code_string" href="sms:?body=" class="sms-btn" >Send Invite by SMS</a>
更新
我已成功地在SMS錨文本輸入綁定,但是當我嘗試自來水在短信應用程序不能打開的按鈕上。這表明不安全:短信,但是當我嘗試只用HREF與示例文本(HREF =「短信:體=文本」),它開闢了短信應用
所以要追加的輸入值href值:短信:體=推薦碼? – b3wii
請添加更多的代碼並清晰地提出問題或創建一個plunkr。 – superUser
基本上文本框內的值會傳遞給短信本體消息 – clestcruz