html代码
<div>
<input id="test" class="weui-input" />
<button class="touch">置零</button>
<div>
JS代码
$('.touch').click(function (e) {
//获取input的id
var id = $(e.currentTarget).parent().find('.weui-input').attr('id');
//将input值置零
$(e.currentTarget).parent().find('.weui-input').val(0);
});