Home > front end >  C #, an Unexpected token in JSON at position 0
C #, an Unexpected token in JSON at position 0

Time:01-05

ReadCSV () {
Let the form=new Form (a);
Let fp=new FilePicker (). The width (400);
Let DLG=new Dialog ();
Form. The content (new Wrap () the children ([
The new Label (" select the CSV file "), fp, new Button (" read "). Click ((SRC, args)=& gt; {
If (UI. ValidateRequired (fp, "please select a file")) {
Form. The upload (). Then (it=& gt; {
if (! String. IsNullOrEmpty (fp) remotePath ())) {
//var fileName=fp. The fileName ();
Let the result=Goms. Services. Cases. HistoryRecordClient. RecordReadCSV (fp) remotePath ());//C: \ Users \ KWCT daicl \ Desktop
If (result==true) {
Alert (" read success!!!!!! ");
DLG. Close ();
} else {
Alert (" read failure!!!!!!
")}
}
})
}
})
]));
DLG. Title (" read CSV file "). The contentStyle ({30} padding:). The content (form). The show ();
}


I am the front desk Typescript, I the import database code in the data import is no problem, when less than 100000 when reach tens of we won't be able to call a method of background, in the form. The upload (). Then (it=& gt; {this place directly submitted to the "Unexpected token in JSON at position 0" this error, ask bosses know!!