JS删除字符串最后的空行

this.responseText.replace(/[\r\n]/g,'');

Github惯用语句……

1