Similar to Jsp, java script can be written in template, there are also import.
Similar to Jsp, there are 3 types of script tags:
A Import class is created in the project, which has 2 properties: packageName and className.
In the template, you need to import Import class;
The format of the import declaration is: <%@jet imports="XX.XX.XX" %>
1)Content Assist(alt+/), choose as follows.
2)Search package or class, select List
3)If import List, need to import ArrayList, so can also be written directly java.util.*
1)Enter keyword, content Assist(alt+/), select Import - ch1.s2.
2)The editor automatically inserts the import declaration.