我已经在https://codepen.io/fjenpen/pen/pROPov中汇总了代码,但是当我在https://jsfiddle.net/z05d3ufq/#flexiselDemo3中查看它时,
$('#flexiselDemo3 a').click(function(e) {
var target = $(this).attr("href");
$(".main .content").not(target).hide();
$(target).show();
return (false);
});
$(".main .content").hide();
var initialTarget = "#Section1";
if (location.hash.length > 0) {
initialTarget = location.hash;
}
$(initialTarget).show();