<li> <input type="text" name="token" value = "<?php ech$_SESSION['token']; ?>"> 头像:<input type="file" id="file" style="display:none;" name ="u_img" > <img src="<?php echo $result['u_img'] ; ?>" id = "fileimg" width="100" height="100" style="border:1px solid #eee"> </li>
<script> function _file(){ $('#file').click(); } $("#fileimg").click(function(){ _file(); }) </script>