You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansu_ui/lib/extension/string_extension.dart

11 lines
216 B

4 years ago
extension PhoneExt on String {
String get phone {
///电话号码加分隔线
return (this.substring(0, 3) +
'-' +
this.substring(3, 7) +
'-' +
this.substring(7, 11));
}
}