English 中文(简体)
IE 7 预期识别符号、说明或编号
原标题:IE 7 expected identifier, string or number

由于我的法典在除IE7外的所有其他浏览器中工作,因此,我觉得自己存在问题,似乎无法为我的生活找到。 这是“特定识别标志、插图或编号”错误。

这是我的法典。

    function calculate() {
        var principal = document.loandata.principal.value;
        var interest = document.loandata.interest.value / 100 / 12;
        var payments = document.loandata.years.value * 12;

        var x = Math.pow(1 + interest, payments);
        var monthly = (principal*x*interest)/(x-1);

        if (!isNaN(monthly) && 
            (monthly != Number.POSITIVE_INFINITY) &&
            (monthly != Number.NEGATIVE_INFINITY)) {

            document.loandata.payment.value = round(monthly);
            document.loandata.total.value = round(monthly * payments);
            document.loandata.totalinterest.value = 
                round((monthly * payments) - principal);
        } else {
            document.loandata.payment.value = "";
            document.loandata.total.value = "";
            document.loandata.totalinterest.value = "";
        }
    }

    function round(x) {
      return Math.round(x*100)/100;
    }

    jQuery(document).ready(function ($) {
    $( #button ).click(function(){
          $( #option2 ).animate({
         height:  365px , }, 500 );
  });
});

但问题似乎在于我有我的亲密职能,即......。

jQuery(document).ready(function ($) {
    $( #button ).click(function(){
          $( #option2 ).animate({
         height:  365px , }, 500 );
  });
});

任何帮助都得到极大评价。

最佳回答

IE被校外混为一谈:

变化:

height:  365px , }, 500 );

:

height:  365px  }, 500 );
问题回答

在365px之后移除 com





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签