摘要:
1 <script type="text/babel"> 2 //父亲 3 class Abox extends React.Component{ 4 constructor(props) { 5 super(props); 6 this.state = { 7 arr: [{ 8 "userNam 阅读全文
摘要:
1 <body> 2 <div id="root"> 3 4 </div> 5 <script type="text/babel"> 6 class Box extends React.Component { 7 constructor(props) { 8 super(props) 9 this. 阅读全文
摘要:
话不多说直接上代码! 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1 阅读全文