JSX 就像XML一樣,除了可以設定children,也可以設定attribute。而attribute代入的內容可以是string,也可以是一個object。 // 傳入字串const ele1 = <div name="Allen" ...
確定! 回上一頁