English 中文(简体)
如何使用Django模板图书馆教区JSON
原标题:How do i parse JSON strings using Django template library
  • 时间:2009-10-30 16:45:57
  •  标签:

How do i parse JSON strings using Django template library. I can parse it using javascript in my template, but I would like to parse the json in the template library when it is rendered by the server. Is there a way to do it. - Amey Kanade

问题回答

我认为,你实际上是指用javascript而不是“在你的模板中”,而是在客户方面对JSON数据进行分类。 不管怎么说,如果你想要在你的模板中使用初等人物的数据,为什么不处理这种数据,以为模板提供变数?





相关问题
热门标签