模拟器调试显示无空行,真机调试里面有多行空行,不知道怎么去掉
以下是代码
<textarea>{{FCDES}}</textarea>
textarea{
width: 230px;
min-height: 20px;
max-height: 150px;
_height: 120px;
margin-left: auto;
margin-right: auto;
padding: 3px;
outline: 0;
border: 1px solid #a0b3d6;
font-size: 14px;
line-height: 20px;
padding: 2px;
word-wrap: break-word;
overflow-x: hidden;
overflow-y: auto;
display: block;
border-color: rgba(82, 168, 236, 0.8);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
}
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
应该是有换行符“\r”,api接口处理一下