极乐门资源网 Design By www.ioogu.com
easyui 框架下 代码如下:
css:
.file_box{ float: right; width: 1035px; border: 1px solid #999; height: 32px; line-height: 35px; padding-left: 10px; margin-right: 25px; } .file{ float: right; outline: none; border:none; background: #67BEF4; border-radius: 4px; padding: 4px 12px; cursor:pointer; color: #fff; font-size:18px; line-height: 20px; vertical-align: middle; margin: 2px; }
html 页面:
<div class="file_box"> <button type="button" class="file" id="select_file" onclick="file1.click();" > 选择附件</button> <input type="file" id="file1" name="PXXA_APPENDIX" style="width:250px;display: none;" onchange="setfile_tmp()";> <input type="text" id="file2" readonly="readonly" th:value="${map.PXXA_APPENDIX}" onclick="file1.click(); "> </div>
js脚本:
function setfile_tmp(){ var file11 = $("#file1")[0].value; var arrays1 = file11.split("\\"); var name1 = arrays1[arrays1.length-1]; name1=name1.toLowerCase(); $("#file2")[0].value=name1; }
总结
标签:
type,file,文件修改表单
极乐门资源网 Design By www.ioogu.com
极乐门资源网
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
极乐门资源网 Design By www.ioogu.com
暂无解决type=file 文件修改表单 名称不能正常回显的问题的评论...
更新日志
2024年09月20日
2024年09月20日
- 交错战线角色养成攻略一览
- 群星《2024好听新歌27》AI调整音效【WAV分轨】
- 黑鸭子-《伴你二十年》11CD[WAV分轨]
- 魏新雨《为你祈祷+新歌精逊2CD[WAV]
- 影心、明萨拉你选哪个?国外美女COS《博德3》
- 澳洲女子骑车跌入“自杀树”丛 疼痛持续9个月崩溃
- 育碧公布2024“她创力”计划:为女性游戏人提供辅导
- 刘美君.2017-千色·30总选3CD【环球】【WAV+CUE】
- 群星.2022-星河长明电视原声带【乐有奇思】【FLAC分轨】
- 陈淑桦.1995-淑桦盛开Forever【滚石】【WAV+CUE】
- 《再来一张》评测:出师成败皆系“赌”
- 《银河汉堡店》测评:我是银河走菜王!
- 《末日地带2》评测:酣畅淋漓的“和面”之旅
- 萧煌奇《没事的》[320K/MP3][96.22MB]
- 萧煌奇《没事的》[FLAC/分轨][263.38MB]