在正常情况下,&& 全真才真、一假则假。|| 全假则假,一真则真。
但是今天要说的是短路表达式。
this.autologin && (this.rememb=true)
如果this.autologin 是真,则执行(this.rememb=true)
如果this.autologin是假,则返回执行this.autologin的执行结果。
this.rememb ||(this.autologin=falst)
如果当this.rememb为真,则执行this.rememb的返回结果。
如果this.rememb为假,则执行(this.autologin=fast)的结果。