<input type="file" name="file_upload10" id="file_upload10" class="file_upload" style="display: none" onchange="changeFile(this.value,'file_copy_upload10')">
<input type="text" name="file_copy_upload10" id="file_copy_upload10" class="form-control am-input-upload" onclick="file_upload10.click()"/>
<button type="button" class="layui-btn" id="file_btn10" style="display: none;">开始上传
</button>
var changeFile = function(e,id) {
if (e != "") {
var length = e.length;
// if (e.lastIndexOf("\.") != -1) {
// length = e.lastIndexOf("\.");
// } else {
// alert("您上传的文件夹没有后缀名?");
// }
$("#" + id).val(e.substring(e.lastIndexOf("\\") + 1, length));
}
}