<input type="number" id="weight" name='weight' pattern="[0-9]*" class="input-footer-none" placeholder="请输入..."> //type=number可以实现 但是一般pattern="[0-9]*" Read More
posted @ 2017-09-10 10:49 xzzzys Views(518) Comments(0) Diggs(0) Edit
/** * 修改点击input输入框时的位置 *input框获取焦点footer隐藏,失去焦点时显示 */ $('.input-footer-none').on('focus',function(){ $('.footer-focus-none').css('display','none'); va Read More
posted @ 2017-09-10 10:44 xzzzys Views(299) Comments(0) Diggs(0) Edit
/** * 修改点击input输入框时的位置 */ $('.input-footer-none').on('focus',function(){ var _this=this; setTimeout(function(){ _this.scrollIntoView(); _this.scrollIn Read More
posted @ 2017-09-10 10:42 xzzzys Views(652) Comments(0) Diggs(0) Edit
//重置 $('.reset-bottom').click(function(){ $('.mui-input-clear').attr('value','');//text类型 $('input[name=sex]').removeAttr("checked");//radio类型 $('inpu Read More
posted @ 2017-09-10 10:38 xzzzys Views(174) Comments(0) Diggs(0) Edit