$('input[placeholder]').placeholder()
input[type=text]
input[type=email]
input[type=url]
input[type=tel]
input[type=number]
input[type=password]
textarea
元素支持UMD模块
对于<input type="password" />
的处理方式是在外层生成一个<label />
容器,并在用一个<span />
来定位提示文字。
因此如果发生提示文字位置不正确或者样式不对,请自行清除对label或者span的额外样式。
此外,对于后期动态生成的input
需要重新绑定事件。