jquery-price-format

2018-08-11 admin

jquery-price-format是什么

什么是jquery-price-format,jQuery Price Format plugin is useful to format input text fields or any HTML element as prices.

jquery-price-format介绍、jquery-price-format使用

jQuery Price Format Plugin is useful to format input fields and HTML elements as prices. For instance if you enter 123456 the plugin automagically formats it as US$ 1,234.56.

Surely it is costumizable so you can use other prefixes, separators, suffixes, plus and minus signs etc. Check out some awesome examples.

Installation

npm install --save https://github.com/flaviosilveira/Jquery-Price-Format.git

Usage

  1. Install or download the jquery.priceformat.min.js
  2. Include the proper script tag in your HTML, e.g.: <script src="./your-project/jquery.priceformat.min.js"></script>
  3. Customize as in the examples and enjoy it!

Contributing

Please contribute using Github Flow:

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Any doubt open an issue or drop a line:

History

Check out releases for a detailed changelog.

License

Code is under MIT License Copyright © jQuery-Price-Format

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-37741.html

文章标题:jquery-price-format

回到顶部