Detailed new features of HTML5

1.geolocation-- Positioning
PC - IP address of the
relatively low accuracy
IP library
Chrome -> Google
phone - GPS
window.navigator.geolocation
single getCurrentPosition (success, failure, parameters)
enableHighAccuracy high-precision mode - slower, more costly electricity
timeout timeout
maximumAge cache time
results:
latitude: 34.22844136399747 latitude
longitude: 108.86509354233583 longitude
altitude: 405.6882629394531 altitude
accuracy: 65 accuracy
altitudeAccuracy: 10 height accuracy
heading: null toward
speed: null speed

Listening watchPosition (success, failure, parameters)
2.video, Audio
Video - Video
Parameters:
src address
autoplay autoplay
loop looping
poster cover image
compatible method:
<Video>
<Flash> </ Flash>
</ Video>
Video Support format:
IEs VMV / MP4
the Chrome webq / MP4
Firefox OGV / MP4
aUDIO - audio mp3 format

JS Interface:
.play () play
.pause () to pause
.currentTime current playback position (S)
.duration length (S)
.volume volume (0-100)
.muted silent boolean

3.localStorage / sessionStorage
4.WebSQL does not maintain a
5.WebWorker - to achieve multi-process browser on the
host> Programs> Process> Thread> shred

web side
main process UI process
child processes (working processes) invisible; only complete the calculation, the requested data operations

Advantages:
1, full use of resources (multiple processes simultaneously)
2, to prevent the main process master card

Disadvantages:
1, can not perform any UI operations, the child can only perform computational tasks

Conclusion:
WebWorker rarely --web in computational tasks at work with not much

6. File operation, drag -
// OnDragEnter enter
// ondragleave leave
// ondragover hover
// ondrop release the mouse
are H5 newly added event is part of DOM3, it is best to use oDiv.addEventListener ( 'event ', function () {}, false); event-binding.

tinymce rich text editor plugin
7.manifest-- specify which resources to cache, which does not cache. I can not find the resources to read other resources
8.canvas

 

Guess you like

Origin www.cnblogs.com/caicai521/p/11262116.html