Open sunliangjie opened 3 years ago
var count = 0; function login(){ var e = document.getElementById("btn1"); e.innerText = "测试"+count; mui(e).button('loading'); setTimeout(function() { mui(e).button('reset'); }, 2000); count++; }
代码如上,count每点击一次加一后,loading前button文字不同,但reset后,button文字一直是“测试0”。
var count = 0; function login(){ var e = document.getElementById("btn1"); e.innerText = "测试"+count; mui(e).button('loading'); setTimeout(function() { mui(e).button('reset'); }, 2000); count++; }
代码如上,count每点击一次加一后,loading前button文字不同,但reset后,button文字一直是“测试0”。