Internet Explorer中预期的功能当我的页面加载时,会出现错误功能吗? [英] Function expected in Internet Explorer When my page loads it gives error function expected?
本文介绍了Internet Explorer中预期的功能当我的页面加载时,会出现错误功能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<script type="text/javascript">
$(document).ready(function () {
$("#content div").hide();
$("#tabs li:first").attr("id", "current");
$("#content div:first").fadeIn();
$('#tabs a').click(function (e) {
e.preventDefault();
$("#content div").hide();
$("#tabs li").attr("id", "");
$(this).parent().attr("id", "current");
$('#' + $(this).attr('title')).fadeIn();
});
})();
推荐答案
( document ) .ready( function (){
(document).ready(function () {
( #content div)。hide();
("#content div").hide();
( < span class =code-string>#tabs li:first)。attr( id , 当前);
("#tabs li:first").attr("id", "current");
这篇关于Internet Explorer中预期的功能当我的页面加载时,会出现错误功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文