0
这个问题已经被问过很多次这样的网站上,我尝试过很多例子,但nonthing工作。 我的情况是:变化不起作用使用的.html()
Info.find('description').html(Info.description);
我得到的输出是这样的:米歇尔\ NMA美女这些都是一起去很好的话。
我不能代替\n
与<br>
(输出为HTML页)我尝试了所有的这些选择,但我得到的结果相同,难道我错过了什么?
Info.find('description').html(Info.description).replace(/\n/g, "<br />");
Info.find('description').html(Info.description.replace(/\n/g, "<br />"));
Info.find('description').html(Info.description.toString().replace(/\n/g, "<br />"));)
Info.find('description').html(Info.description).replace(**"**\n**"**, **"**<br />**"**));;
Info.find('description').html(Info.description).replace(new RegExp('/\n','g'), '<br />')
使用'\ r \ N'在您更换 – Mihai
我试过为好,没什么...... – Damkulul
你能发布Info.description'的'精确输出,及后足够的代码,我们可以重现问题了吗? –