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

xiaoxiao2021-03-06  111

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)

%>