layuiadmin-view(this.id).render popup layer pass value

view(this.id).render('打开层', data).done(function(){})

Business description: The above code is the code of the parent page, which needs to open the child page and pass the value, and pass the data value into the opening layer

<script type="text/html" template lay-done="layui.data.sendParams(d.params)"></script>

Subpages need to introduce this code

layui.data.sendParams = function (params) { 
    
    js层全在里面
    layui.use(['admin','form','laydate'], function(){
        ......
        值:params
    })

}

The values ​​in the subpage are all in params

Guess you like

Origin blog.csdn.net/munchmills/article/details/129139745