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.
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
578 Understanding How to Configure Google API Key
1022 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
© 2024 OneMinuteCode. All rights reserved.