当前位置: 代码迷 >> Web前端 >> DWZ框架集锦
  详细解决方案

DWZ框架集锦

热度:110   发布时间:2012-09-11 10:49:04.0
DWZ框架汇总

?在div中加上一个class="tabs"的样式,会给背景加上一个背景

???????? 通常class=tabs与class=tabsContent是成对出现的.

?

?

?

?rel代表在所在的id中作添加.

?

?? eg:??? 有一个a标签

?

? <a href='transit/departments_list.action?OID="+json[i].OID+"' target='ajax' rel='listDepartment'>

?

????????????? a标签作一个struts2的请求.当请求返回后的值或者页面,将在id为listDepartment中出现

???????? <div id="listDepartment"></div>

?

?

?

? 当在表格中,要表示选中某一个值

???????????? <tr target="sid_user " rel="${dep.OID}">??? //-->target代表其选中的值

?????????????????? <td></td>

?????????????????? <td></td>

????????????? </tr>

?

???? 在工具栏中请求的url可对应写成----->delete.action?OID={sid_user}

?

?

?

?框架中提供了各种提示框架.

??????????? 确认提示框
????????????????? alertMsg.confirm("您修改的资料未保存,请选择保存或取消!", {
?????????????????????? okCall: function(){
?????????????????????? $.post(url, {accountId: accountId}, DWZ.ajaxDone, "json");
?????????????????????? }
?????????????????? });
????????????? 成功提示框 alertMsg.correct('您的数据提交成功!')
????????????? 错误提示框 alertMsg.error('您提交的数据有误,请检查后重新提交!')
????????????? 警告提示框 alertMsg.warn('您提交的数据有误,请检查后重新提交!')
????????????? 信息提示框 alertMsg.info('您提交的数据有误,请检查后重新提交!')

?

  相关解决方案