jQuery如何实现同一个遮罩层显示不同的内容?-灵析社区

一本正经写代码

$("#d1").click(function(){ $(".title").html(标题1") $(".description").html("内容一") // 显示遮罩 $("#target").show(); }) $("#d2").click(function(){ $(".title").html(标题2") $(".description").html("内容二") // 显示遮罩 $("#target").show(); })

阅读量:1

点赞量:0

问AI