在zdialog中 select2下拉菜单超出zdialog弹层怎么处理
发布网友
发布时间:2022-06-02 02:01
我来回答
共1个回答
热心网友
时间:2023-10-24 10:54
用的jquery 你可以参考一下
var dayurl = "/stockPlanAction.do?method=doCheck";
var url = webPath + dayurl;
jQuery.ajax({
url : url,
type : "post",
dataType : "json",
data : {},
success : function(data) {
if (data.message != null) {
hideProgressBar(null);
if(confirm(data.message)){
startPD();
}
}
if(data.errorMessage != null){
hideProgressBar(null);
alert(data.errorMessage);
}
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
hideProgressBar(null);
alert("操作失败!");
}
});
strust
public void doCheck(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
//todo------
JSONObject jsonObject = new JSONObject();
response.setContentType("text/json");
response.setCharacterEncoding("UTF-8");
writer = response.getWriter();
jsonObject.put("message",result);
} catch(Exception e){
jsonObject.put("errorMessage", e.getMessage());
e.printStackTrace();
}finally {-----
}