元素渲染 当前时间 <div id="example"></div> <script type="text/babel"> function tick() { const element = ( <div> <h2>{ new Date().toLocaleDateString()}.</h2> <h2>{ new Date().toLocaleString()}.</h2> <h2>{ new Date().toString()}.</h2> <h2>{