Author Topic: The comma in format "#,###" make json object in trouble  (Read 367 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
The comma in format "#,###" make json object in trouble
« on: June 12, 2023, 01:44:46 pm »
When I use  format "#,###" , it makes json object in trouble in browser. I think many users should have suffered for it.
Here is the code:
let gridColModel= [

{   "title": "production",
    "dataIndx": "actualProdTon",
    "width": "100",
    "dataType": "float",
    "format": "#,###"
}

];
« Last Edit: June 12, 2023, 02:27:48 pm by hyh888 »

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Re: The comma in format "#,###" make json object in trouble
« Reply #1 on: June 26, 2023, 06:25:37 am »
For the template engine in my program regards "###" as comment symbol, so the js program was disabled partially.
Is there any other way to repalce format "#,###"?