两张图片互相切换
?
圖片切換
$('.selectarea img').click(function () {
if ($(this).attr("src") == "/Content/images/persornalZL/select01.jpg") {
$(this).attr("src", "/Content/images/persornalZL/select02.jpg");
}
else {
$(this).attr("src", "/Content/images/persornalZL/select01.jpg");
}
})
?背景圖切換
? $(this).find('.down').toggleClass("top"); ? ? ? ?
轉載于:https://www.cnblogs.com/zhouyx/p/5763629.html
總結
- 上一篇: Oracle数据库之数据类型
- 下一篇: console.log()与alert(