问题描述
我正在向多个手机号码发送消息.我正在用一个文本框输入手机号来发送消息.如果用户要发送多个mobileno,请输入逗号并编写另一个mobileno.
我写了一个方法,即sendMessage()这种方法我从文本框中检索mobileno.我将消息发送到一个可以正常工作的手机号码,但是用户用户输入了多个手机号码,那个时间号码从文本框到SendMessage()方法是一个接一个的.
如何编写这种类型的代码?
请给一个解决办法
Thanks
i am sending message to multiple mobile numbers. i am taking one textbox for enter mobileno''s for sending a message. if user want to send multiple mobileno''s then put comma and write another mobileno.
i write a one method i.e., sendMessage() in this method i retrive mobileno from textbox. i send message to one mobile number its working but user user enter multiple mobileno''s that time number comes one by one to the SendMessage() method from textbox.
how to write this type of code?
please give a solution
thanks
推荐答案
这篇关于对文本框中的逗号分隔存有疑问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!