$("#show").removeAttr("style"); //ie,ff均支持
$("." + this.bigimg).attr("src", dataURL).fadeIn().load(function () {//imgSrc是图片地址
$("." + this.bigimg).css({
height: realHeight,
width: realWidth,
});
$(".imgNotify" + time).removeClass("showing")
$(".imgNotify" + time).addClass("showing")
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
<script src="https://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.2.min.js">
<script src="https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
$('div.noview').hide()
a.items[0].name
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).parent().parent().addClass("disabled")); })
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).parent().parent().removeClass("disabled")); })
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).hide()); })
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).show()); })
<label>
<input type="checkbox" name="item" onchange="childOrLadySelect('child',this)">
有小孩
</label>
function childOrLadySelect(which, value) {
console.log(which)
console.log($(value).is(':checked'))
temp=null;
if(which==='child')
temp=$("#mySelect").find("span.tagChild")
else if(which==='lady')
temp=$("#mySelect").find("span.tagLady")
else
return;
if($(value).is(':checked')){
temp.each(function () { ($(this).parent().parent().addClass("disabled")); })
temp.each(function () { ($(this).show()); })
}else{
temp.each(function () { ($(this).parent().parent().removeClass("disabled")); })
temp.each(function () { ($(this).hide()); })
}
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).parent().parent().addClass("disabled")); })
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).parent().parent().removeClass("disabled")); })
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).hide()); })
$("#mySelect").find("span.tagChild").each(function () { console.log($(this).show()); })
}
评论区