当数据为字符串类型的数字时,要转换成数字类型时可以用这种方式 例如 假如res.header['X-Total-Count']=‘1' res.header['X-Total-Count'] - 0 转换之后变成数字类型1