DataTransfer()

通过构造函数 DataTransfer 创建一个新的 DataTransfer 对象。注意,单独创建该对象没有意义,且Internet Explorer中 DataTransfer 不是一个构造函数。

语法

var dataTrans = new DataTransfer()

参数

返回值

一个空的 DataTransfer 对象。

规范

规范 状态 备注
HTML Living Standard
DataTransfer
Living Standard Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
DataTransfer() constructorChrome Full support 60Edge Full support ≤79Firefox ? IE ? Opera Full support 47Safari No support NoWebView Android Full support 60Chrome Android Full support 60Firefox Android ? Opera Android Full support 44Safari iOS No support NoSamsung Internet Android Full support 8.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown