利用这个函数清除空行,方便多了.....怎么加入火车头
function delnull(){
var bbs_haisanya_str=document.getElementById('text').value;
bbs_haisanya_str=bbs_haisanya_str.replace(/([\s]*\r\n[\s]*){2,}/gm,"\r\n");
document.getElementById('text').value=bbs_haisanya_str;
sum_word();
} 内置就有清除空行的功能,怎么还搞这么多东西?ali16ls
页:
[1]