答案1
像这样?
\documentclass{beamer}
\makeatletter
\addtobeamertemplate{frametitle}{}{%
\only<1>{%
\addtocontents{toc}{%
\protect\beamer@subsectionintoc{\the\c@section}{0}{%
\insertframetitle%
}{\the\c@page}{\the\c@part}{\the\beamer@tocsectionnumber}%
}%
}%
}%
\makeatother
\begin{document}
\section{First Section}
\begin{frame}
\tableofcontents[sections=\value{section}]
\end{frame}
\begin{frame}{First frame}
Text
\end{frame}
\begin{frame}{Second frame}
Text
\end{frame}
\section{Second Section}
\begin{frame}
\frametitle{Third frame}
\framesubtitle{mySubtitle}
Text
\end{frame}
\begin{frame}
\frametitle{Fourth frame}
Text
\pause
more text
\end{frame}
\end{document}