计算在ie9中不起作用

Calculations not working in ie9

好的,所以我使用了一个名为 ionSlider 的滑块插件,并在其中添加了一些自定义功能,根据滑块的值,我更新了网站的某些区域以具有新的 values/prices , 由于某些原因,这些在 ie9 中没有更新。

用法:

$("#value-calc").ionRangeSlider({
    type: 'single',
    min: 1,
    max: 10,
    values: [1, 3, 5, 10, 20, 35, 50, 100, 200, 500],
    hide_min_max: true,
    onChange: function (data) {
      //Set initial values
      var pricePerUser = 19.99,
          hoursSaved = 72,
          savedPerMonth = 999.00,
          roiPerMonth = 4;

      //Update price per user
      $('#price-user').html('£'+(pricePerUser*data.from_value).toFixed(2));
      //Update hours saved
      $('#hours-saved').html((hoursSaved*data.from_value));
      //Update saved money per month
      $('#saved-month').html('£'+(savedPerMonth*data.from_value).toFixed(2));
      //Update roi
      $('#roi').html((roiPerMonth*data.from_value)+'/month');
    }
  });

你能用eval()方法检查一下吗,希望它能起作用。