lundi 27 avril 2020

Pass JavaScript variable to Flask variable

I have flask variable called 'gene_info' which is json object and I want to access one index in json for example 'gene_info['AMPH']'. 'AMPH' is a variable value in JavaScript. So how can I do this?

var symbol = 'AMPH'; var td_name = ''; console.log(td_name);




Aucun commentaire:

Enregistrer un commentaire