var url = "x.php";
var get = "add_x";
switch(url) {
case "/x.php":
$("-sharpmenu").show();
break;
}
above is only to judge what url is and what to do
but can I add get judgment? Do the same thing!
is the same as $("- sharpmenu"). Show ();
, but switch has been determined by the url event
how to add get
is like I want to add another switch
switch(get) {
case "add_x":
$("-sharpmenu").show();
break;
}
can you agree