久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

firefox ondrop event.dataTransfer 更新到版本 52 后為空

firefox ondrop event.dataTransfer is null after update to version 52(firefox ondrop event.dataTransfer 更新到版本 52 后為空)
本文介紹了firefox ondrop event.dataTransfer 更新到版本 52 后為空的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

簡(jiǎn)介:

大約在 2017 年 3 月中旬,在將 Firefox 更新到版本 52 后,某些功能(拖放和粘貼)無(wú)法正常運(yùn)行.正如它在調(diào)試時(shí)顯示的那樣,事件的屬性dataTransfer"現(xiàn)在設(shè)置為 null.

At about mid March 2017, after an update of firefox to version 52, certain functions - drop and paste - ceaced to function properly. As it shows up on debugging, the attribute "dataTransfer" of the event is nowadays set to null.

在更新之前,onDrop 和 onPaste 事件都將 dataTransfer 屬性設(shè)置為要?jiǎng)h除或粘貼的內(nèi)容.

Previously to the update, onDrop and onPaste events both delivered the dataTransfer attribut set to the contents of what were to be dropped or pasted.

問(wèn)題:

在實(shí)際瀏覽器中應(yīng)該如何處理拖放和粘貼?這些天有什么必要的預(yù)防措施嗎?現(xiàn)在有限制行為背后的原因嗎?

How should drop and paste be handled with actual browsers? Are there any precautions necessary these days? Is there an explanation out there of the reasons behind the restrictive behavior of nowadays?

互聯(lián)網(wǎng)上是否有任何示例顯示如何使用實(shí)際瀏覽器完成任務(wù)?

Is there any example out there in the internet showing how to accomplish the task with actual browsers?

我不要求 Firefox 48 版之前的示例,因?yàn)橹辽僭谀莻€(gè)版本之前,整個(gè)事情都完美無(wú)缺.我不要求使用 jQuery 或任何其他庫(kù)的示例(如果它們作為附加補(bǔ)充提供,我不會(huì)拒絕這些示例).我確實(shí)要求使用簡(jiǎn)單的原生 javascript 示例.

I do not ask for examples prior to version 48 of firefox, since at least until that version, the whole thing worked flawlessly. I do not ask for examples with jQuery or any other library (while not rejecting those if they come as additional supplements). I do ask for examples with simple plain native javascript.

推薦答案

一步步調(diào)試的時(shí)候,dataTransfer的數(shù)據(jù)好像丟失了.可能是因?yàn)檎{(diào)試中涉及的事件.讀取dataTransfer(ev.dataTransfer.getData)后開(kāi)始一步步調(diào)試,你會(huì)看到dataTransfer不再為空了.

When debugging step by step, the data from dataTransfer seems to get lost. Probably because of the events involved in debugging. Start the step-by-step debugging after the reading of dataTransfer (ev.dataTransfer.getData), and you will see that dataTransfer is not null anymore.

這篇關(guān)于firefox ondrop event.dataTransfer 更新到版本 52 后為空的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How can I get my jasmine tests fixtures to load before the javascript considers the document to be quot;readyquot;?(在 javascript 認(rèn)為文檔“準(zhǔn)備好之前,如何讓我的 jasmine 測(cè)試裝置加載?) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)
What do jasmine runs and waitsFor actually do?(jasmine 運(yùn)行和等待實(shí)際上是做什么的?)
How to provide mock files to change event of lt;input type=#39;file#39;gt; for unit testing(如何提供模擬文件來(lái)更改 lt;input type=filegt; 的事件用于單元測(cè)試)
How to unit test a chained method using Jasmine(如何使用 Jasmine 對(duì)鏈?zhǔn)椒椒ㄟM(jìn)行單元測(cè)試)
How do I inject $rootScope into an AngularJS unit test?(如何將 $rootScope 注入 AngularJS 單元測(cè)試?)
Jasmine - How to spy on a function call within a function?(Jasmine - 如何監(jiān)視函數(shù)中的函數(shù)調(diào)用?)
主站蜘蛛池模板: 亚洲国产网| 国产在线资源 | av午夜激情 | aaaa网站| 本道综合精品 | 精品一区二区三区在线视频 | 青娱乐国产 | 欧美激情久久久久久 | 久久69精品久久久久久国产越南 | 亚洲激情在线 | 成人免费视频播放 | 青青操91 | 亚洲网址在线观看 | 久久久久久免费毛片精品 | 久久国产成人 | 正在播放国产精品 | 91久久久久久 | 天天躁日日躁狠狠的躁天龙影院 | 日韩中文字幕视频在线 | 亚洲精品一区中文字幕 | 国产欧美在线视频 | 国产免费一区二区三区 | 99精品视频网 | 欧美一区二区三区在线 | 91在线一区 | 国产在线精品一区二区 | 国产精品123区 | 国产精品久久久久国产a级 欧美日本韩国一区二区 | 欧美在线日韩 | 久久久久免费精品国产小说色大师 | 日韩在线看片 | 99视频在线| 欧美激情第一区 | 成人国产精品久久久 | 国产精品久久久久久一区二区三区 | 毛片免费在线 | 国产成人精品一区二区三区视频 | 欧美成人精品一区二区三区 | 中文字幕在线二区 | 久久久99精品免费观看 | 国产亚洲日本精品 |