没有分隔符的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 : '', }`更多推荐
发布评论