code: function initFrame(action) {
              var frame = {
                  index: 0,
                  time: +new Date(),
                  elapsed: 0,
                  action: action,
                  next: function() {
                      pushFrame(frame);
                  }
              };
              return frame;
          }
docs: 初始化一个帧，主要用于后续计算