jQuery判断div中是否有内容:
if($("#fileList").find("li").length == 1){//如果id为fileList的div中包含“XXX”的ul标签中的没有找到li标签,就证明是没有内容的
/*alert("有内容");*/
}
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!