屏蔽 appcelerator 上的输入
Mask an input on appcelerator
我的应用程序中有一个 phone 输入:
<TextField id="FieldTelefone" class="textArea"></TextField>
我想创建一个 telephone 面具,最好使用 REGEX,但我很难在 appcelerator 上这样做。
我需要它是:
(xx)_xxxx-xxxx
要么
(xx)_xxxx-xxxxx
巴西 phone 数字模式。
但我无法仅使用 javascript 来完成它,但是我可以验证它,有人可以帮助我吗?
此 git 存储库将帮助您:https://github.com/Nyvra/titanium-appcelerator-fields-mask
您肯定需要扩展脚本,但您会看到它是如何工作的
我的应用程序中有一个 phone 输入:
<TextField id="FieldTelefone" class="textArea"></TextField>
我想创建一个 telephone 面具,最好使用 REGEX,但我很难在 appcelerator 上这样做。
我需要它是: (xx)_xxxx-xxxx 要么 (xx)_xxxx-xxxxx
巴西 phone 数字模式。
但我无法仅使用 javascript 来完成它,但是我可以验证它,有人可以帮助我吗?
此 git 存储库将帮助您:https://github.com/Nyvra/titanium-appcelerator-fields-mask
您肯定需要扩展脚本,但您会看到它是如何工作的