1.
'<img src="'+this.api + commonService.captchaImage + '" onclick="refreshCaptcha(this)" style="margin-top:10px;border: 1px solid #b4bccc;cursor: pointer;" title="点击刷新" />'
2.
methods: {
refreshCaptcha(e){
e.src = this.api + commonService.captchaImage + '?t=' + new Date().getTime();
//document.getElementById('captcha').src = this.api + commonService.captchaImage + '?t=' + new Date().getTime();
},
}
3.
created() {
window.refreshCaptcha = this.refreshCaptcha;
}
708

被折叠的 条评论
为什么被折叠?



