我有要在 HTML 中显示的文本,例如:
var htmlStr = "1.first thing %10-15%. 2.second thing %25-44%. 3.third"
我在 div 中显示它:
$('#div1').html(htmlStr);
但是当我在手机上显示它时,DIV1我HTML5得到了下一件事:
1.first thing %10-15.2%.second thing %25-44.3%.third
(错误是:15% - 15.2%)
它发生在iOS系统中,我如何JavaScrip/jQuery根据这个规则使用修复它?