Why does Firebug say toFixed() is not a function?

前端 未结 5 1727
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-23 19:57

I am using jQuery 1.7.2 and jQuery UI 1.9.1. I am using the code below within a slider. (http://jqueryui.com/slider/)

I have a function that should test two values a

5条回答
  •  庸人自扰
    2020-12-23 20:59

    In a function, use as

    render: function (args) {
        if (args.value != 0)
            return (parseFloat(args.value).toFixed(2));
    
    
    },
    

提交回复
热议问题