私はその機能が必要です
デフォルトで画像が表示される場所
{input type="file"}
その画像を使用してアップロードされたファイルが非表示になる場合
<div id='browse-img-sh'><img src="https://cdn4.iconfinder.com/data/icons/Pretty_office_icon_part_2/64/man.png" /></div>
<input name="" type="file">
jQuery(document).ready(function(){
jQuery('#hideshow').live('click', function(event) {
if (window.File && window.FileReader && window.FileList && window.Blob)
{
if (jQuery('#file_input')[0].files[0] != undefined) {
jQuery('#content').toggle('show');
}
}
else {
console.log("File API is not supported");
}
});
});
これはあなたを助けることができると思います。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加