码云 前端开发 图解头条和滴滴的一道面试题:smartRepeat 函数 在讲解这道题之前我们先来看下一个数据结构:栈,因为我们需要用栈来解决这道题。 栈 栈... JavaScript pop() push() shift() smartRepeat unshift() 前端面试题 面试题