jQ 数据在后台输出拼成完成的记录表,弹出事件没有效果

来源:互联网 发布:数码兽传说 网络侦探pc 编辑:程序博客网 时间:2024/06/11 23:44

效果:







html代码:


PHP后台代码



网页浏览结果



JS点击弹出窗口写法

重点:

要用这种写法:$(document).on("click",".viwe_application",function(){

不能用:$("#viwe_application").on("click",function(){

<script>layui.use(['layer', 'laydate','form', 'jquery'], function(){ var laydate = layui.laydate,     layer = layui.layer,     $=layui.$;        //查看报名表$(document).on("click",".viwe_application",function(){var number = $(this).attr("lay-id");//var utitle = $(this).val();layer.ready(function(){   layer.open({type: 2,title: '查看报名表',shade: [0.8, '#000000'],maxmin: true,area: ['890px', '600px'],content: '{$_M['url']['own_form']}a=do_viwe_11_application&number='+number,end: function(){  //self.location='071.php'; }  });});});});</script>





阅读全文
0 0