layui span绑定form值

浪淘沙2年前前端244

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 同时调用多个数据

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

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

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

layui table后端接口html代码,前端显示

  , { field: 'dwbq', title: '单位标签', width:&n...

vue 级联及el-cascader的绑定

一、页面表单<div class="row m-2">     <label class=...

layui 静态html table 表头会固定在顶部

@page @model xxtsoft.Web.Entry.Pages.sysadmins.mb.mbModel @{     Layout&...

element plus 链接开式,参数为模板插值

 <el-table-column label="操作" :fixed="isMobile ? false&nbs...

发表评论    

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