最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - html5 vs jquery drag and drop - Stack Overflow

programmeradmin2浏览0评论

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 advance

Escobar

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 advance

Escobar

Share Improve this question asked Aug 3, 2011 at 1:34 Escobar5Escobar5 4,0829 gold badges40 silver badges62 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 21

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 so

if(Modernizr.draganddrop) {
   // HTML 5!
} else {
   // Javascript fallback option
}
发布评论

评论列表(0)

  1. 暂无评论