多级三元表达式

byttype: this.pageType === 4 ? 2 : this.pageType === 1 ? 1 : ''
原文地址:https://www.cnblogs.com/hellofangfang/p/13963177.html