taro---image引入图片
taro---image引入图片
import Taro, { Component } from '@tarojs/taro'
import { View, Image } from '@tarojs/components'
1、网络图片
<Image style='width:300px;height:100px;background: #fff;' src='https://storage.360buyimg.com/mtd/home/111543234387022.jpg'/>
2、本地资源图片
<Image className="unit-info-tax-tip" src={require('../../../../images/icon_03.png')} />
3、定义变量
import tipPng from '../../../../images/icon_03.png'
引入变量即可
<Image className="unit-info-tax-tip" src={tipPng} />