<img src=" " name="image" border=0 id="img"/>
<br />
<input name="picture" type="file" id="picture" onchange="img.src=this.value" />
</form>
不需要按钮,直接触发onchange事件就能实现~~~
<img src=" " name="image" border=0 id="img"/>
<br />
<input name="picture" type="file" id="picture" onchange="img.src=this.value" />
</form>
不需要按钮,直接触发onchange事件就能实现~~~