首页 > Web开发 > 详细

easyui带file上传控件表达提交

时间:2020-04-25 14:06:46      阅读:64      评论:0      收藏:0      [点我收藏+]

到easyui官网下载jquery.easyui.min.js引入到项目中:

<script src="/jquery.easyui.min.js"></script>

 

js代码:

$("#infoWindow").form("submit", {
        url: "/api/Files/ReceiveFile/?t=" + new Date().getTime(),
        onSubmit: function (params) {
            return true;
        },
        success: function (data) {
            if (data != "undefined") {
                var json = eval(‘(‘ + data + ‘)‘);
                console.log(JSON.stringify(json));

                layer.msg(json.msg);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            }
            else {
                layer.msg(data);
            }
        },
        error: function () {

        }
    });

 

easyui带file上传控件表达提交

原文:https://www.cnblogs.com/hofmann/p/12772588.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!