如何使用jquery正确格式化货币? [英] How can I correctly format currency using jquery?
本文介绍了如何使用jquery正确格式化货币?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不需要掩码,但是我需要一些能够格式化货币的格式(在所有浏览器中),并且不允许键入任何字母或特殊字符.感谢您的帮助
示例:
有效期:$ 50.00$ 1,000.53
无效:$ w45.00
$ 34.3r6
解决方案
JQUERY FORMATCURRENCY PLUGIN
http://code.google.com/p/jquery-formatcurrency/ >
I do not need a mask, but I need something that will format currency(in all browsers) and not allow for any letters or special char's to be typed. Thanks for the help
Example:
Valid: $50.00
$1,000.53
Not Valid: $w45.00
$34.3r6
解决方案
JQUERY FORMATCURRENCY PLUGIN
http://code.google.com/p/jquery-formatcurrency/
这篇关于如何使用jquery正确格式化货币?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文