【发布时间】:2021-07-22 15:43:07
【问题描述】:
两种方法都试过了,还是不行!
const Data = [
{
image: ('./cake.png'),
title:"candy",
text:"Orange Candy",
ingred :"abc, xyx",
price:"$5"
},
{
image:"../assets/images/cake.png",
title:"cake",
text:"Cake",
ingred :"pqr, aaa",
price:"$10"
}
];
export default Data;
【问题讨论】:
-
你是怎么导入的?
标签: javascript reactjs react-native jsx