Home >Web Front-end >H5 Tutorial >HTML5 image preview example sharing_html5 tutorial skills

HTML5 image preview example sharing_html5 tutorial skills

WBOY
WBOYOriginal
2016-05-16 15:47:461504browse

HTML5 image preview requires two methods

1.URL
2.FileReader
Directly upload the code


Copy code
The code is as follows:





html5 Image upload preview











The URL.revokeObjectURL method Opera does not support it. FileReader does not support it except IE9 and below, but other browsers support it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn