Home > Article > Web Front-end > JS determines whether a variable is empty and determines whether it is null_javascript skills
/** * 判断是否null * @param data */ function isNull(data){ return (data == "" || data == undefined || data == null) ? "暂无" : data; }