I make my page as follows:
response.render('index', {
data: list
});
And on the first page I want to save dataas a globe variable, so I tried:
<script>
window.app = <%= data %>
</script>
but the result:
window.app = [object Object],[object Object],[object Object]
So how can I do it right?
source
share