本文介绍了html5 vs jquery拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我开始开发webapp,我想尽可能多地使用HTML5。我的应用程序有一个大量使用拖放的界面,我的问题是,在这个时候,是否推荐使用html5本地拖放?或者是更好地使用另一个js库的jQuery的用户界面? 感谢提前 Escobar 不幸的是,HTML5仍然是新的,许多浏览器不支持(部分)它。我建议使用HTML 5,并且如果浏览器不支持该功能,则可以将其备份到Javascript。 使用Modernizr ,你可以很容易地检测到这样的功能 $ p $ if(Modernizr.draganddrop){ // HTML 5! } else { // Javascript后备选项} I'm starting the development of a webapp, I want to use HTML5 as much as I can. My application has an interface with a heavy use of drag and drop, my question is, at this moment, is it recommended to use the html5 native drag and drop? or is it better to use another js library for that like jquery ui?Thanks in advanceEscobar 解决方案 HTML 5 is widely considered the next major step in web development and many browsers have begun the adoption of the new standard. So think of using HTML 5 to accomplish these tasks as an investment in future technologies. It will make your application more robust and more scalable.Unfortunately HTML5 is still new and many browsers don't support (parts of) it. I suggest using HTML 5 and having the ability to fallback to Javascript if the browser doesn't support the feature.Using Modernizr you can easily detect the feature like soif(Modernizr.draganddrop) { // HTML 5!} else { // Javascript fallback option} 这篇关于html5 vs jquery拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-04 20:24