jq passes the parameter to the selector as a variable id

When processing attachments, apply the consent method to multiple attachments, and pass parameters as id and name
incorrectly written:
function showFileName(fid,nm){
$("#"+nm).val($("#"+fid)[0 ].files[0].name);
}

Correct spelling:
function showFileName(fid,nm){
$(nm).val($(fid)[0].files[0].name);
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326249469&siteId=291194637