jsp页面嵌入java语句使用即可,但是在使用if else语句时一定要注意使用是标点的使用,在语句中分号不能写,不符合jsp页面的语法规则,若多写了则会报错:如下:
{name: 'priceRA', type: 'string'},
{name: 'priceRB', type: 'string'},
{name: 'priceRC', type: 'string'},
{name: 'priceRD', type: 'string'},
{name: 'priceFA', type: 'string'},
{name: 'priceFB', type: 'string'},
{name: 'priceFC', type: 'string'},
{name: 'priceFD', type: 'string'},
则会报很多相关else的错误,但是若把分号去掉则ok了!!如换成以下代码则会正常运行:
{name: 'priceRA', type: 'string'},
{name: 'priceRB', type: 'string'},
{name: 'priceRC', type: 'string'},
{name: 'priceRD', type: 'string'},
{name: 'priceFA', type: 'string'},
{name: 'priceFB', type: 'string'},
{name: 'priceFC', type: 'string'},
{name: 'priceFD', type: 'string'},