TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Formance.js – Library for formatting and validating form fields

54 点作者 omarshammas超过 11 年前

12 条评论

slg超过 11 年前
Somewhat off topic, but I wish there was a credible site out there that reviewed these type of general libraries. There are hundreds of them out there and when I need to find one it usually comes with hours of research trying to decide on the right one to use. It would be great if there was a place to look up the general strengths and weaknesses of each without doing all the necessary leg work.
评论 #6382378 未加载
评论 #6384302 未加载
评论 #6383615 未加载
评论 #6382809 未加载
评论 #6384204 未加载
eluos超过 11 年前
I wish they wouldn't show error prompts when the user has just started entering characters
评论 #6382688 未加载
评论 #6382833 未加载
ianstormtaylor超过 11 年前
If you&#x27;re looking for a nice validation API that doesn&#x27;t require jQuery, I&#x27;ve been working on one recently for forms: <a href="https://github.com/segmentio/validate" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;segmentio&#x2F;validate</a><p>I personally really dislike working with jQuery plugins, because their APIs tend to be very poorly thought out. And using strings as a way to call methods is generally unfortunate, especially when they are snake-cased like these ones.
评论 #6383200 未加载
GBB超过 11 年前
For North American phone numbers, it&#x27;s fairly common to input your phone number with the preceding country code of 1. It would be nice if the library accounted for that.
评论 #6382340 未加载
jbackus超过 11 年前
You should make these compatible with Parsley.js: <a href="http://parsleyjs.org/documentation.html" rel="nofollow">http:&#x2F;&#x2F;parsleyjs.org&#x2F;documentation.html</a>
评论 #6383518 未加载
jacobbijani超过 11 年前
A few of them (phone number) break if you CMD-A to select all and start typing, to replace the entire value. It just deselects and appends rather than overwriting.
评论 #6382314 未加载
hyperturtle超过 11 年前
If I fill out the phone number all the way, then go back with the arrow keys and try to delete&#x2F;change numbers, I get weird behavior
评论 #6383089 未加载
zen_boy超过 11 年前
Great plugin!<p>Is there something similar for AngularJS that supports input limiting and formatting?
BaconJuice超过 11 年前
aaannddnd it works in IE7! Beautiful. Thank you. Will be using this for sure!
bigd超过 11 年前
I&#x27;m so going to test 4242 4242 4242 4242 in every shopping website now.
JazCE超过 11 年前
if it can&#x27;t validate emails according to the RFC&#x27;s don&#x27;t include email &quot;validation&quot;
DustinCalim超过 11 年前
What about international numbers?
评论 #6382331 未加载