You should create two Zero applications—one named zero.charts and one named chart.maker —to hold the Groovy code and Ajax code, respectively.
您应该创建两个 Zero 应用程序 —一个名为 zero.charts,另一个名为 chart.maker —以分别存放 Groovy 代码和 Ajax 代码。
Note that it can have zero or one values, so you cannot use simple databinding to show the result. Instead, you can write one line of code in the Page_Load to determine the value, and then print it.
注意,Employee可以有零个或多个值,因此无法使用简单的数据绑定来显示结果。
应用推荐