if(!$("#reply-comment").val().replace(/ +/g,"").replace(/[\r\n]/g,"")){
$("#reply-comment").next("span").css("color", "red").text("内容不能为空");
}
replace(/ +/g,"") # 去掉空格
replace(/[\r\n]/g,"") # 去掉换行
if(!$("#reply-comment").val().replace(/ +/g,"").replace(/[\r\n]/g,"")){
$("#reply-comment").next("span").css("color", "red").text("内容不能为空");
}
replace(/ +/g,"") # 去掉空格
replace(/[\r\n]/g,"") # 去掉换行