//引入方式一:import tsIcon from '../images/typescript.jpeg';
//引入方式二:const tsIcon = require('../images/typescript.jpeg');
//使用方式一:<img src={tsIcon} alt="" />、<img src={require('../images/typescript.jpeg')} alt="" />
//使用方式二:<div style={{background: `url(${tsIcon}) no-repeat`}}></div>
//使用方式三:const styles = { test: { background: `url(${tsIcon}) no-repeat center` }}render() { return ( <div style={styles.test}></div> )}
引入在线的照片直接在src中引入在线照片的地址即可