下面分别用JavaScript 原生方法,React.createElement 方法,以及JSX 方法来创建一个h1元素,class设置为main,最后挂载在id 为root 的div 元素下面。
確定! 回上一頁