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

沒有 JQuery UI 的拖放

Drag and drop without JQuery UI(沒有 JQuery UI 的拖放)
本文介紹了沒有 JQuery UI 的拖放的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

我搜索了很多內(nèi)容以找到有關(guān)拖動 & 的教程.drop 單獨(dú)使用 jQuery(沒有 UI),但是由于 JQuery UI 的流行,所有的拖放功能都基于 JQuery UI.

I searched a lot to find a tutorial for drag & drop with jQuery alone (without UI), but due to the popularity of JQuery UI, all drag and drop features are based on JQuery UI.

誰能給我一個提示如何制作一個基本的 Drag &單獨(dú)使用 JQuery 嗎?

Can anyone give me a hint how to make a basic Drag & Drop by JQuery standalone?

推薦答案

我認(rèn)為一個好的起點(diǎn)可能是規(guī)劃流程,然后決定每個用戶操作需要使用哪些 jQuery 工具.

I think a good starting place might be to map out the process, and then decide which jQuery tools you will need to use for each user action.

所以用戶進(jìn)程可能是:

  • 在可拖動"區(qū)域點(diǎn)擊您的內(nèi)容 div
  • 拖動內(nèi)容,將內(nèi)容保留在該 div 中
  • 松開鼠標(biāo),將內(nèi)容放入可放置"容器中,該容器將調(diào)整之前內(nèi)容的大小以適應(yīng)可放置大小

需要以下類型的事件監(jiān)聽器:

which needs the following types of event listeners:

  • 鼠標(biāo)移動
  • 鼠標(biāo)按下
  • 動畫

至少.另一種選擇可能是查看 jQuery UI 源代碼,看看他們是如何做到的!這將告訴您確切的操作,但您可以在必要時添加或修剪.

At the very least. Another option might be to check out the jQuery UI source, and see how they do it! Which will tell you exactly what to do but you can add to it or trim where necessary.

這篇關(guān)于沒有 JQuery UI 的拖放的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(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 測試裝置加載?) - IT屋-程序員軟件開發(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(如何提供模擬文件來更改 lt;input type=filegt; 的事件用于單元測試)
How to unit test a chained method using Jasmine(如何使用 Jasmine 對鏈?zhǔn)椒椒ㄟM(jìn)行單元測試)
How do I inject $rootScope into an AngularJS unit test?(如何將 $rootScope 注入 AngularJS 單元測試?)
Jasmine - How to spy on a function call within a function?(Jasmine - 如何監(jiān)視函數(shù)中的函數(shù)調(diào)用?)
主站蜘蛛池模板: 国产精品区一区二区三 | 亚洲精品免费观看 | 国产免费拔擦拔擦8x高清 | 色综合天天天天做夜夜夜夜做 | 欧美黑人国产人伦爽爽爽 | 国产97色 | 亚洲精品久久久久中文字幕欢迎你 | 丝袜美腿一区二区三区 | 成人精品一区二区 | 九九热在线观看 | 国产一区二区久久久 | 91一区二区三区 | 91精品国产综合久久香蕉922 | 国产精品伦一区二区三级视频 | 黄色精品 | 国产情侣啪啪 | 国产高清在线视频 | 午夜精品久久久久久久久久久久 | 久久久久亚洲精品 | 一区二区视频 | 中文字幕在线免费观看 | 精品欧美激情精品一区 | 在线a视频网站 | 日本精品一区二区三区视频 | 毛片a | 成人福利网 | 91精品国产91久久久久久最新 | 婷婷久久综合 | 成人小视频在线观看 | 欧美日韩在线精品 | 精品国产一区二区三区久久久蜜月 | 九色一区 | 一区二区三区国产精品 | 亚洲欧美久久 | 午夜爽爽爽男女免费观看 | 中文字幕亚洲精品 | 国产亚洲精品久久久久久牛牛 | 中文字幕一区在线观看视频 | 性色av香蕉一区二区 | 一区二区三区免费观看 | 久精品视频 |