The variable name inside the front end is more than one ";" There will be so many differences

Source: Internet
Author: User

$ (' #formTable '). DataGrid ({
URL: '/ezsh/orderad/gtorderdetaisllist?porderid=${porderid}&pgoodsid=${pgoodsid} ',
columns:[[
{field: ' Orderdetailsid ', title: ' Order Detail ID ', width:100,align: ' Center '},
{field: ' Porderid ', title: ' Order base ID ', Width:100,align: ' Center '},
{field: ' Pgoodsid ', title: ' Product ID ', width:100,align: ' Center '},
{field: ' Goodsname ', title: ' Product Name ', width:100,align: ' Center '},
{field: ' Buyamount ', title: ' Purchase Quantity ', Width:100,align: ' Center '},
{field: ' Price ', title: ' Monovalent ', width:100,align: ' Center '},
{field: ' Refundcontent ', title: ' Return content ', Width:100,align: ' Center '},
{field: ' Refundmoney ', title: ' Refund Amount ', Width:100,align: ' Center '},
{field: ' Aftersalestatus ', title: ' Trading Status ', Width:100,align: ' Center ',
Formatter:function (Value,row,index) {
if (value = =-1) {
Return "Merchant rejects the return request";
} else if (value = = 1) {
Return "The application returns, waits for the merchant to handle";
}else if (value = = 2) {
Return "Merchant accepts return request";
}else if (value ==3) {
Return "successful return";
}
}},
{field: ' Appraisestatus ', title: ' Evaluation ', Width:100,align: ' Center '},
{field: ' Refundimgs; ', Hidden: ' True ', title: ' Return image ', width:100,align: ' Center '},
/* {field: ' Sectionnamesvalues ', Hidden: ' True ', Title: ' Property key-value pairs ', width:100,align: ' Center '},
*//* {field: ' Synthesizestatus ', title: ', Width:100,align: ' Center '},
{field: ' Goodsorder ', title: ', Width:100,align: ' Center '},
{field: ' Goods ', title: ', Width:100,align: ' Center '},
{field: ' Goodslist ', title: ', Width:100,align: ' Center '}, */
]],
View:detailview,fitcolumns:true,
Detailformatter:function (RowIndex, RowData) {
Return ' <table><tr> ' +
' <td rowspan=2 style= "border:0" ></td> ' +
' <td style= ' border:0 ' > ' +
' </td> ' +
' </tr></table> ';
}
});

{field: ' Refundmoney; ', title: ' Return Amount ', Width:100,align: ' Center '},

Because of the extra and ";", which leads to misalignment

At first I thought it was because of the reason for this BigDecimal data type

I've been looking for Baidu and Bing.

Finally, change this.

{field: ' Refundmoney ', title: ' Refund Amount ', Width:100,align: ' Center '},

It's OK.

The variable name inside the front end is more than one ";" There will be so many differences

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.