我收到了Uncaught SyntaxError:意外的标识符

这段代码已在我的布局中通知用户,但是我收到了Uncaught SyntaxError:意外的标识符。请帮我!

<script type="text/javascript">
                       setInterval($.ajax({

                           url: '@Url.Action("GetCountOfNewReferralCustomerForNotifyUser", "ReportReferralCustomers")',
                           type: 'POST',
                           contentType: 'application/json',
                           data: {},
                           success: function (result) {
                               if (result > 0) {

//I have an 'badge'in id='noteForUser' to notify user

                                   $('ul#menu  #noteForUser').html(result);
                                   $('ul#menu  #noteForUser').show();
                               }
                               else
                                   $('ul#menu  #noteForUser').hide();
                           },
                           error: function () { }

                       }), 120000);


                   </script>
评论