HTML5是否意味着使用JavaScript做得更少? [英] Does HTML5 mean doing less with JavaScript?

查看:111
本文介绍了HTML5是否意味着使用JavaScript做得更少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用HTML5的浏览器是否会使用较少的JavaScript,jQuery等,并使用HTML完成动画制作?是否会使平滑图形不再需要Flash?

Will browsers that use HTML5 use less JavaScript, jQuery, etc. and make things like animations done with just HTML? Will it make Flash less necessary for "smooth" graphics?

换句话说,由于HTML5在这里,我不会花时间学习jQuery,我?

In other words, I won’t lose anything by taking the time to learn jQuery since HTML5 is here, will I?

推荐答案

在某些特定的地方,是的:

In some specific places, yup:


  • autofocus 属性专门用于替换常见的JavaScript模式

  • CSS3动画可以取代JavaScript动画,所以如果我们在扩展的苹果意义上​​谈论HTML5,那么

  • The autofocus attribute is specifically designed to replace a common JavaScript pattern
  • CSS3 animations can replace JavaScript animations, so if we’re talking about HTML5 in the expanded Apple sense of the word, yup

但总的来说,我看不到HTML5减少JavaScript的有用性,也没有像jQuery这样的框架。鉴于HTML的开发受到浏览器版本的限制,它可以做的最好的事情是为一些非常常见的脚本模式提供标记替代方案。脚本很有用,因为它可以让你做任何你能想象到的事情,包括你正在处理的项目特有的东西。

But in general, I can’t see HTML5 diminishing the usefulness of JavaScript, nor frameworks like jQuery, one bit. Given that HTML’s development is constrained by browser releases, the best it can do provide markup alternatives to a few very common scripting patterns. Scripting is useful because it lets you do anything you can imagine, including things specific to the project you’re working on.

所以学习。

这篇关于HTML5是否意味着使用JavaScript做得更少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆