1. 程式人生 > >input file change事件只觸發一次

input file change事件只觸發一次

onchange後,生成一個新input type file代替舊的。

$('#inputFileID').replaceWith('<input name="fileToUpload" type="file" id="inputFileID"  />');

關注微信公眾號:中國IT熱點