zoukankan      html  css  js  c++  java
  • dwz 框架

    
    
    使弹框提交后自动消失,并且更新当前页面数据
    1、弹框
    $data = ['code' => 1,'msg' => $return['msg'], 'callbackType' => "closeCurrent"];和
    onsubmit="return validateCallback(this, dialogAjaxDone)
    组合
    2.navTab页面
    $data = ['code' => 1,'msg' => $return['msg'], 'callbackType' => "closeCurrent"];和onsubmit="return iframeCallback(this,navTabAjaxDone);"
    组合
    注意?validateCallback 和 iframeCallback区别,后者在form表单上传图片用
    2.1

    2.2


    2.3














    三级联动
     function getIndustryClass()
        {
            $emplModel = new ClassifyGovmtLaborEmplModel();
            $pid = input('param.pid');
            if ($pid) {
                $data['pid'] = $pid;
                $nature = $emplModel->getIndustryClass($data);
                $arr = [];
                foreach ($nature['data'] as $v) {
                    $arr[] = array($v['id'], $v['industry_title']);
                }
                array_unshift($arr,array(0, '请选择'));
                return $arr;
            } else {
                return [[0, '请选择']];
            }

        }

          <dl class="nowrap">
                    <dt>行业分类:</dt>
                    <dd>
                        <select class="combox" name="classOne" ref="w_combox_one" refUrl="{:url('getIndustryClass')}?pid={value}">
                            <option value="0">请选择</option>
                            {volist name="classOne" id="vo"}
                                <option value="{$vo.id}">{$vo.industry_title}</option>
                            {/volist}
                        </select>
                        <select class="combox" name="classTwo" id="w_combox_one" ref="w_combox_two" refUrl="{:url('getIndustryClass')}?pid={value}">
                            <option value="0">请选择</option>
                        </select>
                        <select class="combox" name="classThree" id="w_combox_two">
                            <option value="0">请选择</option>
                        </select>
                    </dd>
                </dl>
     
  • 相关阅读:
    javascript 正則表達式补充
    NOIP2010 引水入城
    [Elasticsearch] 集群的工作原理
    师傅快看!全国首个民间资本为主的物联网行业投融资平台诞生了!
    【解决】hive与hbase表结合级联查询的问题
    ssh2项目整合 struts2.1+hibernate3.3+spring3 基于hibernate注解和struts2注解
    Python网络爬虫(一):初步认识网络爬虫
    Android天气预报+百度天气接口
    《从零開始学Swift》学习笔记(Day 55)——使用try?和try!差别
    使用SQL Profile及SQL Tuning Advisor固定运行计划
  • 原文地址:https://www.cnblogs.com/wangyuyanhello/p/8484521.html
Copyright © 2011-2022 走看看