报错内容:
layui.all.js:2 Uncaught Error: Syntax error, unrecognized expression: input[name="image1UploadTime"+language]
错误代码:
$('input[name="image'+j+'UploadTime'"+language]').val(currentDateTime);
因为 language 是个变量
修改为
$('input[name="image'+j+'UploadTime'+language+'"]').val(currentDateTime);