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;'>" + " " + couponShow + " " + openSdbB2cOrdersShow + "</div>";
}
The method of passing parameters added when \ '+ parameters +' \ 'to solve the string,
It's a hidden vulnerability note