我不知道所以我在这里问。我想知道如何调试我的代码,在某种意义上我可以观看它,因为它运行然后看到断点正好在哪里..无论如何
Firefox>萤火虫说:
TypeError:“”。匹配不是函数 http://domain.com/assets/globals/js/jquery-1.9.1.min.js第3行
Chrome控制台说:
Uncaught TypeError: Object function (e)
{
e.preventDefault();
uri = domainURL + domainSuffix + 'fanAction/';
var $liElem = $(this).parents('li');
$.post(uri, {"uid":fmrMembId, "fid":$(this).attr('rel'), "ax":"accept"}, function(data)
{
if(data.status == "success")
{
$liElem.slideUp().remove();
var currCount = parseInt($('#friend_request_count').text())-1;
$('a[href="/fans/requests"] > .menu_badge').text(currCount);
$('#friend_request_count').text(currCount);
if(currCount <= 0)
{
$('#friend_listing').empty().append('<li>No Fans Found</li>');
$('a[href="/fans/requests"]').attr('href','/fans');
$('a[href="/fans"] > .menu_badge').text('').hide();
$('#friend_request_count').text('').hide();
}
}
else if(data.status == "fail")
{
alert('Request Failed, this could be due to any number of reasons.')
}
else
{
alert('An unexpected error occured, try again.')
}
}, 'json');
} has no method 'match'
但最后,我没有看到问题出在哪里。我最近刚刚从jquery 1.7.1(或.2)到1.9.1发生了冲突,这就是结果。有任何想法吗?无论是chrome告诉我的是什么问题,还是我可以通过什么方式观看“profile”脚本运行时来查找它的实际线路?