vui document

Class: maxlength

字符限制(默认140字)

Author: putaoshu@126.com.
View source: maxLength.js.

Arguments:

vui.maxlength (options)

  1. options - (Object) 组件配置
  2. options.max - (Number) 140 字符数
  3. options.numClass - (String) 数字显示class
  4. options.btnClass - (String) 提交按钮class
  5. options.errorClass - (String) 提示错误的class

Example:

$("#nickname").maxLength({
	max:140,
	numClass : 'num',
	btnClass : 'btn',
	errorClass : 'error'
});