这里我有示例html我想在div中解开所有段落标签.目前html看起来像这样.
<div class="divclass">
Hi this is some text.
<p>testing test</p>
<p></p>
<p><a href="#" rel="nofollow">Testing text2</a></p>
</div>
Run Code Online (Sandbox Code Playgroud)
但我想要这样.
<div class="divclass">
Hi this is some text.
testing test
<a href="#" rel="nofollow">Testing text2</a>
</div>
Run Code Online (Sandbox Code Playgroud)
提前致谢.
我的项目没有错误。但构建未成功加载。请参见下图。有关错误的更多详细信息。我正在使用以下命令来运行构建react-native run-android,但 npm 无法创建构建。该图像目录存在,并且我给出了正确的图像路径。提前致谢。
-root --assets ---images ---- 这里的所有图像。
../../assets/images/sky-img.jpg在代码中使用它。