[TOC] 使用setup函数和更好的管理我们的代码vue2.x的data、methods、computed、watch通通写进了setup函数里面一个简单例子 ```javascript {{activeIndex}} ```