dwz简单配置与操作
生活随笔
收集整理的這篇文章主要介紹了
dwz简单配置与操作
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.首先將dwz的文件放到你的項目中(http://yunpan.cn/QbTH4kN6UXX9B)
2.在頁面中將前臺數據復制到頁面中,將js,css等路徑配置好
3.這個地方一定要配置好,xml文件目錄
4.
5.
6.AjaxDoneJson類
/// <summary>/// 為DWZ封裝Ajax返回Json格式/// </summary>/// Create by jerry. 2011/6/27 14:25public class AjaxDoneJson{public string statusCode { get; set; }public string message { get; set; }public string navTabId { get; set; }public string forwardUrl { get; set; }public string callbackType { get; set; }public AjaxDoneJson(string statusCode, string message, string navTabId, string forwardUrl, string callbackType){this.statusCode = statusCode;this.message = message;this.navTabId = navTabId;this.forwardUrl = forwardUrl;this.callbackType = callbackType;}public AjaxDoneJson(string statusCode, string message){this.statusCode = statusCode;this.message = message;this.navTabId = "";this.forwardUrl = "";this.callbackType = "";}public AjaxDoneJson(string statusCode, string message, string navTabId){this.statusCode = statusCode;this.message = message;this.navTabId = navTabId;this.forwardUrl = "";this.callbackType = "";}public AjaxDoneJson(string statusCode, string message, string navTabId, string forwardUrl){this.statusCode = statusCode;this.message = message;this.navTabId = navTabId;this.forwardUrl = forwardUrl;this.callbackType = "";}} View Code7.添加
8.如果添加的頁面時navtab頁面(普通打開的)form表單就用onsubmit="return validateCallback(this, navTabAjaxDone)"
如果在dialog上form表單就用onsubmit="return validateCallback(this, dialogAjaxDone)"
簡單的說就是如果彈框的話就用dialog上form表單就用onsubmit="return validateCallback(this, dialogAjaxDone)",如果沒彈窗的話就用onsubmit="return validateCallback(this, navTabAjaxDone)"
?
轉載于:https://www.cnblogs.com/1003487863qq/p/dwz.html
總結
以上是生活随笔為你收集整理的dwz简单配置与操作的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: struts2 spring hiber
- 下一篇: ASP.NE的缓存技术提高Web站点的性