the great gods on the previous celestial board taught the mysql personalization method (the same query)
now want to learn some JS personalization methods
is it possible to convert without moving the html?
for example
$(".status-btn").mouseenter(function(e) {
var public_order_id = e.currentTarget.dataset.public_order_id;
var id = e.currentTarget.dataset.id;
var type = e.currentTarget.dataset.type;
$("."+type+"-"+public_order_id+", .status-sublist-layout-after-btn").show();
});
$(".status-layout").mouseleave(function(e) {
var public_order_id = e.currentTarget.dataset.public_order_id;
var id = e.currentTarget.dataset.id;
var type = e.currentTarget.dataset.type;
$("."+type+"-"+public_order_id+", .status-sublist-layout-after-btn").hide();
});
$(".status-sublist-layout-after-btn").click(function(event) {
$(".admin-status-submenu-layout, .admin-status-submenu-layout-large, .status-sublist-layout-after-btn").hide();
});
this paragraph is different from others.
has blog-menu, manager-menu, log-menu, setting-menu
but turns it into quick-menu, and everything else is the same
$(".quick-menu").click(function(e) {
$(".quick-layout, .blog-layout, .manager-layout, .log-layout, .setting-layout").hide();
$(".quick-layout").show();
});
$(".quick-layout").mouseleave(function(e) {
$(".quick-layout").hide();
});
$(".blog-menu").click(function(e) {
$(".quick-layout, .blog-layout, .manager-layout, .log-layout, .setting-layout").hide();
$(".blog-layout").show();
});
$(".blog-layout").mouseleave(function(e) {
$(".blog-layout").hide();
});
......
this is the way of exchange that I have thought of at present, and it has been done.
but there must be another way for the gods.
after learning, I can apply other function, to benefit a lot! If you can, I would like to play the principle
Thanksgiving God"s advice!