$.ajax({
            url : url,
              type : 'get',
              dataType:'json',
              success : function(data) {
                //重新渲染页面元素
                  layui.use('element', function() {
                      var element = layui.element;
                      element.init();
                  });
              }
          })


类似的,如果form中的radio等元素没有渲染,则在加载页面添加以下代码亦可解决:
layui.use('form', function() {
      var form = layui.form; 
       form.render();
   });

 

相关文章:

  • 2022-12-23
  • 2021-07-28
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案