前台声明变量 在页面出输入: @{ int x=12; } 随后就可以调用这个声明的 x变量 <div> number:@x </div> There are two ways of constructing a software design.One is to make it so simple that there are obviously no deficiencies;the other is to make it so complicated that there are no obvious deficiencies.