【发布时间】:2021-12-03 09:40:33
【问题描述】:
我的应用程序出现错误,**formaTtoParts** 未定义
TypeError: Intl.NumberFormat(t,{minimumFractionDigits:2}).formatToParts is not a
function. (In 'Intl.NumberFormat(t,{minimumFractionDigits:2}).formatToParts(ri(e))',
'Intl.NumberFormat(t,{minimumFractionDigits:2}).formatToParts' is undefined)
browser.name:
Mobile Safari UI/WKWebView
device:
iPhone
interface_type:
exception
os:
iOS 12.5.5
是否有可能找到一个 polyfill 来支持从 13 开始的以前版本的 Safar 的替代解决方案???
【问题讨论】:
-
查看documentation at MDN。有关于支持的浏览器/环境的详细信息,包括 formatToParts 和 polyfill 的链接。
标签: javascript number-formatting