【发布时间】:2020-11-27 18:35:24
【问题描述】:
我将 Expo (React Native) 与 App.js 主文件一起使用。
它通过名为data.js 的数据连接到我的基地。
data.js 元素示例:
{
id: '70078463',
price: '$49.99',
name: 'PELLO',
image:
'https://www.ikea.com/us/en/images/products/pello-armchair__38296_PE130209_S5.JPG?f=xs'
},
我想添加一个description 标记,其中包含有关该项目的信息:
description: 'This is the best one you can buy online. It is so cool! Why have not you bought it?',
在 HTML 中,我可以使用 <p> 标记将每个句子换行。我在这里怎么做?
【问题讨论】:
-
你可以使用
代替。
标签: javascript html react-native