Home >Web Front-end >JS Tutorial >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; }