我试图在本机反应中将数字转换为价格格式。如何使用https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat(Intl.NumberFormat)这与本机反应?
看起来您需要 JSC 的国际版本:
安卓:https://github.com/react-native-community/jsc-android-buildscripts#international-variant https://github.com/react-native-community/jsc-android-buildscripts#international-variant
对于 iOS,您需要使用 Intl.js polyfillhttps://github.com/andyearnshaw/Intl.js/ https://github.com/andyearnshaw/Intl.js/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)