jsp页面中创建方法时间:2023-04-28 22:10:44在JSP页面中是用 <%! void function(){ } %> 这种方式可以定义函数。 如果只使用 <% //todo %> 代码块中的代码在编译时将会都被加到 sevlet 中的 excute() 方法中。