0

我试图在 JQuery UI 中创建一个货币微调器,但它不起作用,我需要做什么?

   $( "#spinner" ).spinner({ min: 0, numberFormat: "C" }); 

我还需要做什么?

4

1 回答 1

0

I'm having the same problem but found a solution (which I'm still implementing).

You need to specify the culture of the currency you want to see. Which involves downloading some extra stuff...

Go to: https://github.com/jquery/globalize and download the project, you'll need to reference the Globalize.js file and include the culture you want. Your system can't rightly show a monetary amount without knowing where in the world it's from, right?

I'll be back to update this post when my code is up and running. Hope that helped at least a little!

于 2014-09-10T19:56:25.643 回答