js 判断textarea 不为空

if(document.forms['pinglunform'].elements['strmemo'].value == false)
    {
        alert("评论内容不能为空!");
        return false;
    }

原文地址:https://www.cnblogs.com/hateyoucode/p/2880031.html