Today in the js file, the value cannot be obtained by writing the el expression (the code is as follows). After Baidu browsed it, the summary is as follows:
1. JavaScript is executed on the client side, EL is executed on the server side, and the service The client executes before the client, so the value cannot be obtained
2. To get the value of "${isLogin}", you can use a global variable to receive it in jsp, and then use it in js
3. Note: When using, be sure to add double quotes, such as var isLogin="${isLogin}";