jquery calculation插件是否可以计算复杂的运算,例如幂、指数等运算
希望能给一个例子。谢谢

解决方案 »

  1.   


    可以的,
    jquery calculation 这个插件官方网站里面
    不是说的吗?
    The calculation plug-in should be powerful 
    enough to address any style formatting your numbers might be in.
     For US-style formatting
    http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
      

  2.   

    function recalc(){
      $("[id=bmi]").calc(
        "weight * height",
        {
          weight:$("input[name=weight]"),      
          height:$("input[name=height]")      
        },
        function (s){    
          return s;
        }    
      );
    }  怎么把"weight * height"换成幂的形式,即我想求weight的height次方