How to pass the JSP defined parameters to the function of JavaScript definitions in JSP? ? ?

xiaoxiao2021-03-06  109

How to pass the JSP defined parameters to the function of JavaScript definitions in JSP?

E.g:

<% String str1, str2;

// Get multiple STR1, STR2 from the database

/ / Call Drawline in this item (STR1, STR2)

%>