Home > front end >  Javascript code reuse
Javascript code reuse

Time:09-21

First time to BBS, if there is any place unruly, every brother please correct correct
I want to achieve a 3 d is using highchars scatterplot, encountered the problem in want to import the database data in turn
 series: [
{
Name: [' {{database. Label}} '+' & lt; br> '+' {{database. The description}} '],
ColorByPoint: true,
Data: [[{{database. X}}, {{database. Y}}, {{database. Z}}]]
}

]

I think continuously extract data from the database in this part, the first for loop, wanted to use the django was later found in does not support javascript, and then on, who can have what good way to teach me?

CodePudding user response:

You can construct a database of array
Such as var database=[{" label ":" 111 ", "x" : "x", "y" : "y", "z" : "111222"});
Again the value directly assigned to data
Data: the database

CodePudding user response:

Front end is what kind of language development, is the Vue. Js, access to the array later assigned to the data is ok
  • Related