问题描述:
前端一个字段
<script id="editor" type="text/plain" name="content" style="width:600px;height:400px;border-radius: 3px;" >$content!}</script>向后台传该富文本值是 前端控制台打印内容如下<p> <span style="color: rgb(151, 72, 6);"> <span style="color: rgb(151, 72, 6); font-size: 20px;">大师傅的阿萨德</span></span></p>属于完整的带有标签的内容但是后台使用实体类接受时候 实体类属性content 只有
大师傅的阿萨德所有的标签丢失 不会报错,找了一整天问题所在,也怀疑了狠狠多多地方,结果都不是究其问题所在:前端form表的缺少 enctype="multipart/form-data" 编码属性