zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
    <title>班组管理</title>
    <jsp:include page="../../../initlib/initAll.jsp"></jsp:include>
    <script type="text/javascript">
 
        $(function () {
 
            $("#method").combobox({
                url: '${pageContext.request.contextPath}/pms/test/getAllMethods.do',
                valueField:'id',
                textField:'text',
                panelHeight:200
            })
 
            $("#btn").click(function(){
                var method = $("#method").combobox('getValue');
                var xml = $("#xml").val();
                $.ajax( {
                    type:'POST',
                    url:'${pageContext.request.contextPath}/pms/test/sendMsg.do',// 跳转到 action
                    data:{"method":method,"xml":xml},
                    success:function() {
                       alert("发送成功!")
                    },error:function() {
                        alert("发送异常!");
                    }
                });
            })
        });
 
 
    </script>
</head>
<body class="easyui-layout" data-options="fit : true,border : false" style="align-items: center">
<div style="margin: 50px">
    XML内容:
    <br>
    <br>
    <textarea id="xml" name="xml" style="width: 900px; height: 300px"></textarea>
    <br>
    <br>
    接口:<input id="method" name = "method" style="width: 250px">
    <input type="button" id="btn" value = "发送">
 
 
 
 
</div>
</body>
</html>