JavaScript parameter values will change parameter passing shaping parameters, it is the pit (js function parameter passing time length parameter numeric type, parameters are automatically changed SCIENCES automatic counting or 1)

When the function parameter passing 1.js long numeric parameters, parameters are automatically changed automatically incremented or scientific notation

2. Solution

formatter: function (value, row, index) { // 单元格格式化函数

    var pid = row.pcid;
    var orderNo = row.orderNo;
    console.log("22222:" + pid + " ,orderNo:" + orderNo);

    var couponShow = '<button type="button" class="btn btn-info btn-sm" onclick="O2oPromotionCouponUser.openO2oPromotionCouponShow(\'' + pid + '\')">查看优惠券详情</button>';
    var openSdbB2cOrdersShow = '<button type="button" class="btn btn-info btn-sm" onclick="O2oPromotionCouponUser.openSdbB2cOrdersShow(\'' + orderNo + '\')">查看订单详情</button>';
    return "<div style='width:260px;'>" + "&nbsp;&nbsp;" + couponShow + "&nbsp;&nbsp;" + openSdbB2cOrdersShow + "</div>";

}

The method of passing parameters added when \ '+ parameters +' \ 'to solve the string,

It's a hidden vulnerability note

Guess you like

Origin blog.csdn.net/LuckFairyLuckBaby/article/details/93194995