layui span绑定form值

浪淘沙11个月前前端67

image.png

  span{
      display: block;
      padding: 9px 5px; 
      font-weight: 400;
      line-height: 20px;  
  }
$.ajax({
    url: "/api/xm_bfjh/readByID/" + id,
    type: "POST",
    contentType: 'application/json', // 设置请求头中的 Content-Type 为 application/json
    success: function (response) {
        var data = response.data;
        if (response.statusCode == 200) {
             $("#xmid").html(data[0].xmid);
             $("#userxm").html(data[0].userxm);
            
        } else {
            layer.msg("操作失败", { icon: 5 });
        }
    }
});


相关文章

layui table中单元格的行高处理

   , lineStyle: 'height: 55px;' <style>  &nbs...

layui 下拉搜索,多选,form提交

https://codecp.tech/static/xm-select/?lalalalalala=1#/basic/use<div style="margin:100px...

layui 同时调用多个数据

<div class="layui-col-md6">     <div class="l...

Element Plus 步骤条el-steps 设置simple时,箭头换成横线

@page @model xxtsoft.Web.Entry.Pages.hr.regModel @{     Layout =&nb...

layui 只有点击“导出Excel”按钮时,才改变“导出Excel”按钮的状态

<form class="layui-form layui-form-pane" method="post"> &n...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。