它适用于除 IE 之外的所有浏览器。我正在按当前 li 值在 div 中加载页面。
<ul>
<li>HOME</li>
<li>GALLARY</li>
<li>FAQ</li>
<li>CONTACT</li>
</ul>
<div class="result"></div>
$('.result').load( $(this).text() + '.html') is not working in IE.
$('ul li').click( function (){
$('ul li').css({background: "#333", color: "white"});
$(this).css({background: "red", color: "white"});
var dataShow = $(this).text();
$('.result').load( dataShow + '.html');
return false;
});