From 232f389d9d6681ff030dd2a121f5052bd24e8ee4 Mon Sep 17 00:00:00 2001 From: chenxuan Date: Wed, 2 Jun 2021 23:22:38 +0800 Subject: [PATCH] xxx --- project/p1/src/App.js | 1 - project/p2/src/App.js | 24 ++++++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/project/p1/src/App.js b/project/p1/src/App.js index 447906ca2..0543286fa 100644 --- a/project/p1/src/App.js +++ b/project/p1/src/App.js @@ -20,5 +20,4 @@ class App extends React.Component{ ) } } - export default App; diff --git a/project/p2/src/App.js b/project/p2/src/App.js index aba99159d..d28a7398f 100644 --- a/project/p2/src/App.js +++ b/project/p2/src/App.js @@ -8,12 +8,19 @@ class App extends React.Component{ super(); this.state={ bShow:true, - goods:[{ + goods1:[{ id:1,title:"呵呵1" },{ id:2,title:"呵呵2" },{ id:3,title:"呵呵3" + }], + goods2:[{ + id:1,title:"哈哈1" + },{ + id:2,title:"哈哈2" + },{ + id:3,title:"哈哈3" }] } } @@ -35,18 +42,27 @@ class App extends React.Component{
  • hello
  • hello kitty!
  • - {/* {this.state.bShow ?
  • 123
  • :
  • 456
  • } */} - {this.state.bShow &&
  • 789
  • } + {this.state.bShow ?
  • 123
  • :
  • 456
  • } + {/* {this.state.bShow &&
  • 789
  • } */} + ) }