Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/91.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Internet Explorer 11上的ImageData.data(Windows 8.1 Enterprise vs Windows 8.1 Pro)_Javascript_Html_Internet Explorer_Cross Browser_Compatibility - Fatal编程技术网

Javascript Internet Explorer 11上的ImageData.data(Windows 8.1 Enterprise vs Windows 8.1 Pro)

Javascript Internet Explorer 11上的ImageData.data(Windows 8.1 Enterprise vs Windows 8.1 Pro),javascript,html,internet-explorer,cross-browser,compatibility,Javascript,Html,Internet Explorer,Cross Browser,Compatibility,我一直在开发一个利用Javascript的ImageData对象的Web应用程序。此对象的数据属性应返回Uint8ClampedArray。但是,在Windows Surface Pro 2上使用默认浏览器时,数据属性的类型为CanvasPixelArray。我的代码严重依赖于“set”方法来更新CanvasPixelArray没有的图像数据。一些研究表明Uint8ClampedArray取代了HTML5中的CanvasPixelArray。即使在Windows 8.1桌面计算机上,Intern

我一直在开发一个利用Javascript的ImageData对象的Web应用程序。此对象的数据属性应返回Uint8ClampedArray。但是,在Windows Surface Pro 2上使用默认浏览器时,数据属性的类型为CanvasPixelArray。我的代码严重依赖于“set”方法来更新CanvasPixelArray没有的图像数据。一些研究表明Uint8ClampedArray取代了HTML5中的CanvasPixelArray。即使在Windows 8.1桌面计算机上,Internet Explorer 11的ImageData.data也会返回Uint8ClampedArray

我想知道这是否是一个错误,模式设置或设计意图

到目前为止,我已经确认该页面没有在任何兼容模式或怪癖模式下运行

此外,在Windows Surface Pro 2浏览器上,Uint8ClampedArray未定义

测试环境:

台式计算机-Windows 8.1 Enterprise;Internet Explorer版本11.0.9600.17498,更新版本:11.0.15

Windows Surface Pro 2-Windows 8.1 Pro;Internet Explorer版本11.0.9600.16521,更新版本:11.0.4

您可以在那里找到答案: