更新时间:2023-02-25 12:32:59
根据@耶的建议下,我才得以prevent输入到文件上传的未经处理对上传的关键preSS
事件。使用jQuery:
As per @Jer's suggestion, I was able to prevent input into the file upload without breaking any of the other functionality by handling keypress
events on the upload. Using jQuery:
$(document).ready() {
$('input:file').keypress(function() {
return false;
});
}