dcloudio / mui

最接近原生APP体验的高性能框架
https://dev.dcloud.net.cn/mui/
MIT License
13.49k stars 6.57k forks source link

同一个button,在不同title时设置loading,然后reset,title始终被重置为第一次loading前的。 #509

Open sunliangjie opened 3 years ago

sunliangjie commented 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”。