将数组中的数据作为段落添加到一个文本区域

Add data from array to the one textarea as paragraphs

本文关键字:一个 区域 文本 添加 数组 数据 段落      更新时间:2023-09-26

"items":{ "item1":"here is some text that should be paragraph1", "item2":"here is some text that should be paragraph2", "item3":"here is some text that should be paragraph3", }

为此需要两个部分:1.作为单独的段落,显示在页面上<section class="col-xs-10 col-sm-11 col-md-11" ng-repeat="x in items"> <h3>Item {{$index+1}}</h3> <p>{{x}}</p> </section>

  1. 需要将所有段落作为一个<textarea>进行编辑

把这些东西放在一起然后分开可能吗?或者可能更好吗?

通过将每个段落添加为文本区域并在为空时隐藏来解决。