SyntaxError:missing}在函数体之后,一台服务器好,实时服务器失败

时间:2016-10-20 01:11:23

标签: javascript php jquery html jquery-ui-tabs

我无法弄清楚发生了什么,我有这个暂存网站http://eggsfruits.techqueb.com/midi.php我确实放了标签代码和javascript。正在进行流程A1,当我将文件上传到我的实时服务器http://www.eggsfruits.ca/midi.php时,标签不再起作用,我收到错误

  

函数体

之后的SyntaxError:missing}

请你帮我找一下我的问题

1 个答案:

答案 0 :(得分:0)

你的剧本

jQuery(document).ready(function() {jQuery('.tabs .tab-links a').on('click', function(e){var currentAttrValue = jQuery(this).attr('href');// Show/Hide Tabs jQuery('.tabs ' + currentAttrValue).show().siblings().hide(); // Change/remove current tab to active jQuery(this).parent('li').addClass('active').siblings().removeClass('active'); e.preventDefault(); });

正如您所看到的,您没有关闭该功能,因为您赞扬它。

所以我认为你的代码应该是这样的:

jQuery(document).ready(function() {jQuery('.tabs .tab-links a').on('click', function(e){var currentAttrValue = jQuery(this).attr('href'); });// Show/Hide Tabs jQuery('.tabs ' + currentAttrValue).show().siblings().hide(); // Change/remove current tab to active jQuery(this).parent('li').addClass('active').siblings().removeClass('active'); e.preventDefault(); 
相关问题