后台public int num1;public int num2;num1,num2=你取出来的数据
然后后台JS int a=<%=num1>int b=<%=num2>
这样计算
不知道我说的对不对