+
95
-

回答

后面加一个反斜杠,效果如下

var htmlstr = "<div>\
This is a string.\
</div>";


网友回复

我知道答案,我要回答