In the ejs file of node.js,
xxx.ejs
<script> var temp = <%=dateinfo%>; <script> .... <script src="/public/test.js"></script>
Is there a way to declare a temp variable like this and access the temp variable in the test.js file?
There seems to be no reason not to. ;-)
If it doesn't work, I think I can help you more if you share the code that doesn't work.
539 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
516 The method of the class of the application that I am creating in Typescript does not work as I expected.
539 Understanding How to Configure Google API Key
971 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
550 Scrap text information after the "View More" button when searching in the Yahoo! News search window
© 2024 OneMinuteCode. All rights reserved.