如何在NodeJs的Jade视图中显示原始数组

时间:2018-04-16 07:10:36

标签: javascript arrays node.js pug

我想在HTML元素 Textfiled Textarea

中打印原始数组

例如:

[["Anil","Wed Apr 11 2018 13:58:11 GMT+0000 (UTC)", "Morning"],["Anil","Wed Apr 11 2018 13:58:11 GMT+0000 (UTC)", "Morning"],["Anil","Wed Apr 11 2018 13:58:11 GMT+0000 (UTC)", "Morning"]]

但是在NodeJs Jade视图中我得到的字符串是这样的:

"Anil","Wed Apr 11 2018 13:58:11 GMT+0000 (UTC)", "Morning","Anil","Wed Apr 11 2018 13:58:11 GMT+0000 (UTC)", "Morning","Anil","Wed Apr 11 2018 13:58:11 GMT+0000 (UTC)", "Morning"

任何帮助都会非常感激。

0 个答案:

没有答案