没有分隔符的autoNumeric jQuery插件(autoNumeric jQuery plugin without separator)

编程入门 行业动态 更新时间:2024-10-28 17:24:01
没有分隔符的autoNumeric jQuery插件(autoNumeric jQuery plugin without separator)

我想找到没有(逗号)分隔符使用此插件的方法。 任何想法?

jQuery(function ($) { $('.auto').autoNumeric('init', {vMin: '0', vMax: '999999999'}); });

I would like to find the way to use this plugin without (comma) separator. Any idea?

jQuery(function ($) { $('.auto').autoNumeric('init', {vMin: '0', vMax: '999999999'}); });

最满意答案

当然,首先尝试使用当前next分支中找到的v4版本(它很快将在master发布)。

这将允许您删除jQuery依赖项。

要删除逗号组分隔符,您只需执行以下操作:

const anElement = new AutoNumeric('.auto', { minimumValue : '0', maximumValue : '999999999', decimalPlaces : 0, digitGroupSeparator : '', }`

Sure, first try to use the v4 version found in the next branch currently (it'll soon be released in master).

This will allow you to drop the jQuery dependency.

In order to remove the comma group separator, you just need to do :

const anElement = new AutoNumeric('.auto', { minimumValue : '0', maximumValue : '999999999', decimalPlaces : 0, digitGroupSeparator : '', }`

更多推荐

本文发布于:2023-08-04 01:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1405831.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:插件   分隔符   autoNumeric   jQuery   plugin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!