本章内容中的 this.localCaptcha = captcha 咋理解呢?
methods: {
getCaptcha() {
const { tpl, captcha } = createCaptcha()
this.captchaTpl = tpl
this.localCaptcha = captcha
}
}
上面的this.localCaptcha=captcha 这是个啥?求解~~
关于 LearnKu
保留当前生成的验证码,以后校验时会用到
同样的问题,localCaptcha 好像没有在data中定义。但是其实是通过data中可以访问的,可以这样理解吧。