我试图在 JQuery UI 中创建一个货币微调器,但它不起作用,我需要做什么?
$( "#spinner" ).spinner({ min: 0, numberFormat: "C" });
我还需要做什么?
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!