问题
最近学习HTML5,大概的看了一下新的标签和属性等等基本类容。今天又看了File API,File Watch API。单浏览器支持真的是悲惨,我现在迷茫了,不知道是否还应该继续学下去,感觉学了,浏览器支持不是很好啊~
所以,我想问问各位大神,你们在实际开发中经常会用到HTML5的哪些技术?
Web Socket?IndexDB?Web Storage?Canavs?视频和音频?WebGL?
PHP中文网2017-04-17 11:53:58
First of all, you can’t stop learning just because the browser doesn’t support it well. After all, new technology has its advantages, and we have hack methods. I haven’t studied HTML5 in depth, but I will give you an example of the ES6 specification.
Many browsers do not support the ES6 specification, but many companies are using it. Why! It is easy to use and can realize ideas that were difficult to realize before.
There is no need to worry about using ES6, because we are worried about the browser not supporting the problem. Others have already solved it, using shim and polyfill, or converting ES6 to ES5 through transpiler.
The popular angular2 and react now are not just typescript and ES6.
So for HTML5, you don’t need to worry at all. You can learn how to learn. And what I know is that if you make a mobile phone or desktop application, there won’t be much support for HTML5 because they are all webkit kernels. , the difference will not be too big, at least there will not be too big compatibility issues.
For browser support for html5, you can check it on the website http://caniuse.com/.
For the technologies you mentioned above, our company uses web storage and canvas to build websites.
In addition, you have to believe that technology is definitely developing in a good direction, and new things will replace old things.
黄舟2017-04-17 11:53:58
HTML5 is just a standard, and the actual applications are encapsulated.
What I use most is semantic tags.