setLinkCollect
Example:
this[`${1==(this.collect_Status+type)?'set':'del'}LinkCollect`](type)
this[`${2==(this.give_Status+type)?'set':'del'}LinkCollect`](type)
if ((type === 1 && this.collect_Status === 0) || (type === 2 && this.give_Status === 0)) {
this.setLinkcollect(type)
} else {
this.dellinkCollect(type)
}
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答889 阅读✓ 已解决
6 回答1.1k 阅读
2 回答1.3k 阅读✓ 已解决
这2个判断可以并成一个