word-break: keep-all;
word-wrap: break-word;
white-space: pre-line;
text-overflow:ellipsis;
这个方法也用了 ,还用了
<wxs module="util">
var format = function(text){
if(!text){
return
}
var reg = getRegExp('\\\\n','g');
reg = getRegExp('\\\\n','g');
var text = text.replace(reg,'\n ');
text = text.replace("/\n/g",'\\n');
return text;
}
module.exports = {
format:format
}
</wxs>
<wxs module="m2">
var ReplaceHuanghang =function(strCp)
{
return strCp.replace("/↵/g","") ;
}
module.exports.ReplaceHuanghang = ReplaceHuanghang;
</wxs>
还是无济于事,那个回车是excel复制带过来的