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

拖放的最佳輕量級解決方案是什么?

What are the best light-weight solutions for Drag and Drop?(拖放的最佳輕量級解決方案是什么?)
本文介紹了拖放的最佳輕量級解決方案是什么?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我非常喜歡并使用 jQuery,但我希望為特殊項目找到替代解決方案.

I love and use jQuery quite a lot, but I am hoping to find an alternate solution for a special project.

我正在創建一個書簽,它將與我的應用程序交互,以允許用戶更快地輸入信息.目前我的應用程序中最大的痛苦之一是上傳圖像.用戶(可以理解)討厭以有組織的方式將圖像下載到他們的計算機,然后將它們上傳到應用程序的過程.

I am creating a bookmarklet which will interface with my application to allow users to enter information much quicker. One of the greatest pains in my application at the moment is uploading images. Users (understandly) hate the process of downloading images to their computers in an organized fashion, and then uploading them to the app.

我希望小書簽做的是加載一個小的 div 疊加層,其中包含幾個小控件,包括一個允許用戶將圖像從當前頁面拖放到控件中的控件.然后,該腳本會收集這些 img 標簽的 URI,并將它們與表單一起提交給應用程序,然后服務器會自動將它們下載到應用程序中.

What I would love the bookmarklet to do is load in a small div overlay with a couple small controls in it, including one which would allow the user to drag and drop images from the current page into the control. The script would then collect the URI's of those img tags and submit them along with the form to the app, and then they would automatically be downloaded by the server into the app.

因此,對于這項任務,每次單擊書簽時都將 jQuery 和 jQuery UI 加載到頁面中似乎是一種非常笨拙的方法.

So, for this task, loading jQuery and jQuery UI into the page every time you click the bookmarklet seems like a very heavy-handed approach.

誰能推薦一個不錯的、輕量級的 Javascript 工具包,只處理拖放功能而不是其他功能?

我很高興看到新的 DragDealer 工具,它看起來很棒,就在今天ajaxian,但它似乎只處理拖動而不是放下"(即,不是目標)

I was excited to read about the new DragDealer tool, which looks awesome, just today on ajaxian but it seems that it is built to handle only dragging and not "dropping" (i.e., not targets)

推薦答案

我認為庫可能不是最好的解決方案,只是嘗試搜索一個功能/獨立插件/小部件,它只是為您提供此功能,例如

I think a library might not be the best solution and just try searching for a function/stand alone plugin/widget that just delivers this functionality for you such as

  • http://www.webreference.com/programming/javascript/mk/column2/
  • http://luke.breuer.com/tutorial/javascript-drag-and-drop-tutorial.aspx
  • http://tool-man.org/examples/dragging.html

這篇關于拖放的最佳輕量級解決方案是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

How can I get my jasmine tests fixtures to load before the javascript considers the document to be quot;readyquot;?(在 javascript 認為文檔“準備好之前,如何讓我的 jasmine 測試裝置加載?) - IT屋-程序員軟件開發技術
What do jasmine runs and waitsFor actually do?(jasmine 運行和等待實際上是做什么的?)
How to provide mock files to change event of lt;input type=#39;file#39;gt; for unit testing(如何提供模擬文件來更改 lt;input type=filegt; 的事件用于單元測試)
How to unit test a chained method using Jasmine(如何使用 Jasmine 對鏈式方法進行單元測試)
How do I inject $rootScope into an AngularJS unit test?(如何將 $rootScope 注入 AngularJS 單元測試?)
Jasmine - How to spy on a function call within a function?(Jasmine - 如何監視函數中的函數調用?)
主站蜘蛛池模板: 特黄特黄a级毛片免费专区 av网站免费在线观看 | 久草在线视频中文 | 最新日韩av | 久久人| 在线成人免费视频 | 欧美一级在线观看 | 国产精品久久久久久婷婷天堂 | 日韩美女一区二区三区在线观看 | 日韩国产一区二区三区 | 91久久精品国产91久久 | 日韩在线小视频 | 成人免费在线视频 | 国产区精品| 999久久久国产精品 欧美成人h版在线观看 | 伊人激情综合网 | 国产一区二区三区四区五区加勒比 | 久久久九九九九 | 国产99热| 美美女高清毛片视频免费观看 | 日韩欧美国产精品综合嫩v 一区中文字幕 | 欧美精品一区二区在线观看 | 韩国欧洲一级毛片 | 亚洲成人在线免费 | av高清 | 成人国产精品色哟哟 | 久久在线视频 | 黄免费在线 | 国产97视频在线观看 | 精品在线观看一区 | 美女天天干天天操 | 色综合一区二区 | 国产精品永久免费 | 人妖videosex高潮另类 | 91精品国产日韩91久久久久久 | 国产精品a级| 青青草av网站 | 精精国产视频 | 在线观看 亚洲 | 国产黄色在线观看 | 人妖videosex高潮另类 | 精品美女视频在线观看免费软件 |