Home > front end >  Django template how to traverse all the results are added to the js?
Django template how to traverse all the results are added to the js?

Time:10-07



This is the dictionary need incoming sample dict={' jiangsu ':' 3 ', 'zhejiang' : '4', 'shandong: 7,' fujian: 5} # dictionary example

Don't know anything about js, in Python similar I can judge that length, append the traversal result in.
But met js, I do not know how to start... Consult everybody how to do this problem?
  • Related