M
M
malvin2018-09-27 09:52:41
Python
malvin, 2018-09-27 09:52:41

How to get Python list from JS data?

From this piece of code, you need to pull out the values postData​​​​into a Python list.

<a style="color: red;font-size: 12px;font-weight: bolder" target="_self" title="Click here for processing" onclick="return postData('714','714','null','','','TADIKONDA','0713006','TADIKONDA','','1044','EXE DNO 1046 LAND','KARLAPUDI ROSAIAH, EEDA ANJI REDDY LAND','EXE BALANCE LAND','NANDIPATI VENKATESWARLU ETC LAND','0','0','01/01/1983','25/09/2018','t','16/02/2018','1')" href="#"> Next</a>

How to do it?
What is this data type called in JS?
PS can split(',')not be used, because one of the values ​​may contain a comma, and the split will divide it into two values.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex_Zdorgor, 2018-09-27
@malvin

PS use split(',') does not work, since one of the values ​​may contain a comma, and the split will divide it into two values.

Split separating not by comma, but by comma with quotes [ split("','") ] should split correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question