首页 > Web开发 > 详细

jquery.restrictFieldLength.js

时间:2017-01-14 10:14:26      阅读:289      评论:0      收藏:0      [点我收藏+]
  • 1.参考资料

http://www.cnblogs.com/aarond/archive/2013/08/02/3234042.html

  • 2.使用举例

 //字符控制
    $(function () {
        $(".lengthLimit20").restrictFieldLength({
            maxTextLength: 20,
            restoreTime: 2000//,
            //exceptionCallback: processException
        });
        $(".lengthLimit25").restrictFieldLength({
            maxTextLength: 25,
            restoreTime: 2000//,
            //exceptionCallback: processException
        });
        $(".lengthLimit30").restrictFieldLength({
            maxTextLength: 30,
            restoreTime: 2000//,
            //exceptionCallback: processException
        });
        $(".lengthLimit35").restrictFieldLength({
            maxTextLength: 35,
            restoreTime: 2000//,
            //exceptionCallback: processException
        });
        $(".lengthLimit50").restrictFieldLength({
            maxTextLength: 50,
            restoreTime: 2000//,
            //exceptionCallback: processException
        });
    });

 

jquery.restrictFieldLength.js

原文:http://www.cnblogs.com/jacketlin/p/6252086.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!