赋值时参数的转义问题

28 篇文章 0 订阅
20 篇文章 0 订阅
, {
    field: "id1", title: '操作', width: 120, sortable: true, formatter: function (value, rowData, rowIndex) {
        return "<a onClick='returnValue(\" " + rowData.department_num + " \",\" " + rowData.department_name + " \")' style='color:blue;'>查看</a>";
    },

}

值的获取单选一行的判断和取值

/* onClickRow:function() {    //单击进行操作的方法
     var row = $('#dg').datagrid('getSelections');//获取选中行的数据
     if (row.length != 1) {
         showWarnMsg("请选择一条数据!");
         return;
     }var name = row[0].department_name;
     var id = row[0].id;
    /!* window.opener.document.all.text001.value=name;
     window.opener.document.all.parent_id.value=id;
     window.close();*!/
    // parent.window.$("#fade").css("display","none");
 },*/
easyUI取值和赋值

//启用/封存人员动态赋值
      $("#replace1").html(prex2);
      $("#replace2").html(prex2);
      $("#replace3").html(prex2);
      //获取自动单号
      getDateNumber("/common/orderNo",prex,"equipment_unseal","unseal_number",type);
      $("#type").textbox('setValue',type);//默认
      $("#status").textbox('setValue',"正常");//默认
      $("#operator").textbox('setValue',sessionStorage.getItem("username"));
      $("#operator_date").textbox('setValue',getNowFormatDate());

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值