2016-07-13 23 views

回答

0

您可以使用NativeScript masked input plugin,這將允許您指定字符數和特定格式。

+0

這工作,但唯一的問題是,我可以刪除這些掩碼標記,然後我得到IndexOutOfBoundsException和應用程序崩潰那裏..解決問題,並創建一個新的。 – Terhoraj

+0

分離器。不工作,更重要的與maskedInput綁定不受支持? – Terhoraj

+0

我測試了與'nativescript-maskedinput'插件的數據綁定,它正在工作。你可以在這裏查看我的示例項目 - https://github.com/tsonevn/maskedInput_question38346232.git。對於以前的插件版本中的數據綁定存在問題,但已在新版本中修復 - https://github.com/bthurlow/nativescript-maskedinput/issues/3。關於分隔符,您可以查看npm中的信息--https://www.npmjs.com/package/nativescript-maskedinput#supported-seperators。 –