...
|
...
|
@@ -3,7 +3,7 @@ |
|
|
* @author: xuqi<qi.xu@yoho.cn>
|
|
|
* @date: 2015/10/8
|
|
|
*/
|
|
|
var $ = require('yoho.zepto');
|
|
|
var $ = require('yoho.jquery');
|
|
|
|
|
|
var trim = $.trim;
|
|
|
|
...
|
...
|
@@ -96,7 +96,7 @@ function bindClearEvt() { |
|
|
$clear;
|
|
|
|
|
|
$hasClear.append('<div class="clear-input"></div>');
|
|
|
$clear = $hasClear.children('.clear');
|
|
|
$clear = $hasClear.children('.clear-input');
|
|
|
|
|
|
$clear.on('touchstart', function(e) {
|
|
|
var $input = $clear.siblings('.input');
|
...
|
...
|
@@ -108,7 +108,7 @@ function bindClearEvt() { |
|
|
//反向逻辑
|
|
|
$hasClear.children('.input').bind('input', function() {
|
|
|
var $this = $(this),
|
|
|
$thisClear = $this.siblings('.clear'),
|
|
|
$thisClear = $this.siblings('.clear-input'),
|
|
|
val = trim($this.val());
|
|
|
|
|
|
if (val === '') {
|
...
|
...
|
|