格式化手机号,银行号jQuery插件

发布时间:2019-05-21 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了格式化手机号,银行号jQuery插件脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

插件下载链接:http://pan.baidu.com/s/1sjGIZyX

参数

    isBank:false,
    separator:" ",//分隔符
    pointNums:2,//限制2位小数
    type:'normal',
    className:'input-tips'

1.默认情况下无参数,自动判断香港号码和普通手机号

2.银行卡格式化需加参数:

{
    isBlank:true//银行卡
}

3.金钱格式化:

{
    type:'money',
    pointNums:2
}

普通使用方法

Html:

<input type="text" class="input">

JavaScript:

$('.input').inputFormat();

格式化银行卡

Html:

<input type="text" class="input">

JavaScript:

$('.input').inputFormat({isBlank:true});

格式化金钱

Html:

<input type="text" class="input">

JavaScript:

$('.input').inputFormat({type:'money',pointNums:2});

脚本宝典总结

以上是脚本宝典为你收集整理的格式化手机号,银行号jQuery插件全部内容,希望文章能够帮你解决格式化手机号,银行号jQuery插件所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: