$("#img_file").change(function() {
jQuery.ajaxFileUpload({
console.log(888)
})
<input type="file" name="file" id="img_file">

不需要點擊上傳文件按鈕,直接判斷type="file"是否發生改變,即是否選擇了圖片,當發生改變時,直接調用后台上傳圖片接口
