jQuery EasyUI filebox的文件路径错误
来源:互联网 发布:linux pwd命令 编辑:程序博客网 时间:2024/06/05 11:49
环境 :jQuery EasyUI 1.4.1
问题如图:
经过反复测试,在控件的demo里直接使用,可以正常显示路径,在IE11 ,firefox任意版本,chrome任意版本都可以(firefox只显示文件名,故也算作正确)
但是IE9 总是无法正确显示路径,路径如图:
百度了解决方法:
//文件输入框,解决C:\\fakepath\\的错误路径问题$('#xx').filebox({onChange:function(newValue, oldValue){$('#xx').filebox('setValue',newValue.replace("C:\\fakepath\\", "")); }});但是我们测试部很多IE9,情况不一;有点解决了,有的出现windows的弹出框:
我哭了。。。
最终解决方案: 查了路径错误的根本原因是浏览器的安全机制导致的,针对Ie9如下设置即可:
改成启用即可。
0 0
- jQuery EasyUI filebox的文件路径错误
- easyui的filebox过滤文件
- easyui filebox限制文件上传的类型
- easyui filebox限制文件上传的类型
- easyui filebox限制文件上传的类型
- easyUI filebox文件上传
- MVC项目使用easyui的filebox控件上传文件
- easyui filebox限制文件上传的类型accept (新旧版本)
- springMVC easyUI filebox 单个文件上传
- jQuery easyui-filebox+ajax+PHP实现文件上传并恢复备份
- 使用EasyUI 的上传文件控件 easyui-filebox 获取其数据的问题
- 修正EasyUI的BUG——Form中存在FileBox时的数据加载错误
- 为EasyUI的editor扩展filebox
- easyui easyui-filebox 上传文件按钮 更改为汉字
- easyui filebox只选择Excel文件(.xls/.xlsx)
- easyui filebox 上传图片预览
- 用easyui-filebox上传Excel文件(ASP.NET MVC)[附源码下载]
- jquery easyui-datagrid错误
- 如何一步步攻破一家互联网公司的
- Add-on Table ‘Enhancement category for table missing’ 警告解决
- 210. Course Schedule II【M】【7】
- an internal error occurred during building workspace 错误
- android从零开始-闪屏页
- jQuery EasyUI filebox的文件路径错误
- Awesome .NET!
- centos import MySQLdb 报错!
- 对数据库的访问 都放在单独的dll中
- JScrollPane FlowLayout组合显示单行解决方法
- js常用事件总结及案例-onMouseOver、onMouseOut
- java通过URL读取json数据
- 一个由于撩妹而设计出来的C/C++程序
- 表示和描述(1)