Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunliangjie opened this issue Jan 25, 2021 · 0 comments

Comments

@sunliangjie
Copy link

测试

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant