【发布时间】:2023-04-11 06:31:01
【问题描述】:
我在 IE8 中遇到以下问题。我的代码在 Chrome、Mozilla 和 IE10 中运行良好。由于 IE8 不支持画布,我在其中遇到以下问题:
对象不支持属性或方法'fillText'
这是我收到此错误的 jQuery 行:
context.font = basefont+"px 'Trebuchet MS', Verdana, sans-serif";
context.fillText( (Math.round(parseFloat(v['value'] / totalValue * 1000 ))) /
有人有解决办法吗?
【问题讨论】:
-
使用 polyfill。谷歌“canvas polyfill”
标签: javascript jquery internet-explorer-8 html5-canvas polyfills